From 1ad534366ef574f43bf5b06f5d42d4b9ed7e57bd Mon Sep 17 00:00:00 2001 From: Virizion <9b717b9d4e5f09e89fa3@gmail.com> Date: Mon, 30 Nov 2015 22:09:15 -0500 Subject: [PATCH] Switch item dropping to the new util method. --- .../arcade/game/games/speedbuilder/data/DemolitionData.java | 3 ++- .../arcade/game/games/speedbuilder/data/RecreationData.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/DemolitionData.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/DemolitionData.java index aaa0fb440..e305d4ae1 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/DemolitionData.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/DemolitionData.java @@ -2,6 +2,7 @@ package nautilus.game.arcade.game.games.speedbuilder.data; import mineplex.core.common.util.C; import mineplex.core.common.util.MapUtil; +import mineplex.core.common.util.UtilBlock; import mineplex.core.hologram.Hologram; import org.bukkit.Effect; @@ -71,7 +72,7 @@ public class DemolitionData { despawnHologram(); - Item item = Block.getWorld().dropItem(Block.getLocation().add(0.5, 0.5, 0.5), Block.getState().getData().toItemStack(1)); + Item item = Block.getWorld().dropItem(Block.getLocation().add(0.5, 0.5, 0.5), UtilBlock.blockToInventoryItemStack(Block)); Parent.DroppedItems.add(item); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/RecreationData.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/RecreationData.java index c2e6ef4a4..c99ab5d65 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/RecreationData.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/data/RecreationData.java @@ -147,7 +147,7 @@ public class RecreationData { for (Block block : getBlocks()) { - Item item = block.getWorld().dropItem(getMidpoint(), block.getState().getData().toItemStack(1)); + Item item = block.getWorld().dropItem(getMidpoint(), UtilBlock.blockToInventoryItemStack(block)); //UtilAction.velocity(item, new Vector(0, 0, 0));