Switch item dropping to the new util method.

This commit is contained in:
Virizion 2015-11-30 22:09:15 -05:00
parent d24135771f
commit 1ad534366e
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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));