diff --git a/src/main/java/com/gildedgames/the_aether/items/staffs/ItemCloudStaff.java b/src/main/java/com/gildedgames/the_aether/items/staffs/ItemCloudStaff.java index 084ced2..9d39dde 100644 --- a/src/main/java/com/gildedgames/the_aether/items/staffs/ItemCloudStaff.java +++ b/src/main/java/com/gildedgames/the_aether/items/staffs/ItemCloudStaff.java @@ -4,6 +4,7 @@ import com.gildedgames.the_aether.entities.passive.EntityMiniCloud; import com.gildedgames.the_aether.items.ItemsAether; import com.gildedgames.the_aether.player.PlayerAether; import com.gildedgames.the_aether.registry.creative_tabs.AetherCreativeTabs; +import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; @@ -44,6 +45,16 @@ public class ItemCloudStaff extends Item { stack.damageItem(1, entityplayer); } + else if (entityplayer.isSneaking()) + { + for (Entity cloud : playerAether.clouds) + { + if (cloud instanceof EntityMiniCloud) + { + ((EntityMiniCloud) cloud).lifeSpan = 0; + } + } + } return stack; }