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