diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemWorm.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemWorm.java index b72781418..8929bbe74 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemWorm.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemWorm.java @@ -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; } diff --git a/src/main/resources/assets/actuallyadditions/lang/en_US.lang b/src/main/resources/assets/actuallyadditions/lang/en_US.lang index cee646c2f..3895c72ea 100644 --- a/src/main/resources/assets/actuallyadditions/lang/en_US.lang +++ b/src/main/resources/assets/actuallyadditions/lang/en_US.lang @@ -554,8 +554,8 @@ tooltip.actuallyadditions.item_booklet.sub.1=This book guides you through all of tooltip.actuallyadditions.item_booklet.sub.2=the features that Actually Additions tooltip.actuallyadditions.item_booklet.sub.3=has to offer. tooltip.actuallyadditions.item_booklet.sub.4=Use while holding to open. -tooltip.actuallyadditions.playerProbe.disconnect.1=The player you were probing has broken the connection before you could strap him to the Player Interface! Data will be cleared! -tooltip.actuallyadditions.playerProbe.disconnect.2=The player you were probing has disconnected before you could strap him to the Player Interface! Data will be cleared! +tooltip.actuallyadditions.playerProbe.disconnect.1=The player you were probing has broken the connection before you could strap them to the Player Interface! Data will be cleared! +tooltip.actuallyadditions.playerProbe.disconnect.2=The player you were probing has disconnected before you could strap them to the Player Interface! Data will be cleared! tooltip.actuallyadditions.playerProbe.probing=Probing tooltip.actuallyadditions.playerProbe.notice=Look out! Someone tried to probe you and strap you to a Player Interface, but they failed! tooltip.actuallyadditions.battery.discharge=Charging other items in inventory @@ -1067,7 +1067,7 @@ booklet.actuallyadditions.chapter.tinyTorch.name=Tiny Torch booklet.actuallyadditions.chapter.tinyTorch.text.1=Yea. booklet.actuallyadditions.chapter.playerProbe.name=Player Probe -booklet.actuallyadditions.chapter.playerProbe.text.1=The Player Probe can be used to change the player a Player Interface is connected to. If you don't know what the Player Interface does, look it up in here first! To use the Player Probe, simply right-click any player with it and then right-click the interface. But watch out! The Probe will notify the player and disconnect from him whenever he sneaks and will also do so when he leaves the server! Shenanigans +booklet.actuallyadditions.chapter.playerProbe.text.1=The Player Probe can be used to change the player a Player Interface is connected to. If you don't know what the Player Interface does, look it up in here first! To use the Player Probe, simply right-click any player with it and then right-click the interface. But watch out! The Probe will notify the player and disconnect from them whenever they sneak and will also do so when they leave the server! Shenanigans booklet.actuallyadditions.chapter.worms.name=Worms booklet.actuallyadditions.chapter.worms.text.1=The Worms are a pretty useful species. They will, once placed down on dirt or grass, help you till the land around them in a 3x3 area and keep it wet. Additionally, they will help the crops grow faster by making the ground nice and soft. Worms can be gotten by simply tilling grass with a hoe. If you want to remove a worm, just break the block it is on. @@ -1126,4 +1126,4 @@ booklet.actuallyadditions.chapter.engineerHouse.text.1=If you want to know how t booklet.actuallyadditions.chapter.engineerHouse.text.2= Machines Primus booklet.actuallyadditions.chapter.batteryBox.name=Battery Box -booklet.actuallyadditions.chapter.batteryBox.text.1=The Battery Box is a great way to store your power. However, for it to be able to use power, you have to right-click a Battery onto it. It will then be able to store energy on the battery itself. If you set the battery to discharge mode via sneak-right-clicking it or by applying a redstone pulse to the Battery Box, it will try to spread the power it receives equally to up to 15 adjacent Battery Boxes. \ No newline at end of file +booklet.actuallyadditions.chapter.batteryBox.text.1=The Battery Box is a great way to store your power. However, for it to be able to use power, you have to right-click a Battery onto it. It will then be able to store energy on the battery itself. If you set the battery to discharge mode via sneak-right-clicking it or by applying a redstone pulse to the Battery Box, it will try to spread the power it receives equally to up to 15 adjacent Battery Boxes.