mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Fixed creative consumption (#522)
This commit is contained in:
parent
a6f3581d24
commit
c33a7e4cad
1 changed files with 4 additions and 2 deletions
|
@ -51,8 +51,10 @@ public class ItemWorm extends ItemBase{
|
|||
EntityWorm worm = new EntityWorm(world);
|
||||
worm.setPosition(pos.getX()+0.5, pos.getY()+0.5, pos.getZ()+0.5);
|
||||
world.spawnEntity(worm);
|
||||
|
||||
player.setHeldItem(hand, StackUtil.addStackSize(stack, -1));
|
||||
|
||||
if(!player.capabilities.isCreativeMode){
|
||||
player.setHeldItem(hand, StackUtil.addStackSize(stack, -1));
|
||||
}
|
||||
}
|
||||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue