mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-29 18:28: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,8 +52,10 @@ 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);
|
||||||
|
|
||||||
|
if(!player.capabilities.isCreativeMode){
|
||||||
player.setHeldItem(hand, StackUtil.addStackSize(stack, -1));
|
player.setHeldItem(hand, StackUtil.addStackSize(stack, -1));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return EnumActionResult.SUCCESS;
|
return EnumActionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue