Switch item dropping to the new util method.
This commit is contained in:
parent
d24135771f
commit
1ad534366e
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user