Fix Cacophoniem working as Shield and Snowflake Pendant working while sneaking (#3102)

This commit is contained in:
ToMe25 authored and Vincent Lee committed 2020-01-06 12:27:21 -06:00
1 parent 1535ccbba4
commit 4e91268474
2 files changed
+1 -7

No files matched your search

@@ -121,12 +121,6 @@ public class ItemCacophonium extends ItemMod {
list.add(new TranslationTextComponent(ItemNBTHelper.getString(stack, TAG_SOUND_NAME, "")).applyTextStyle(TextFormatting.GRAY));
}
@Nonnull
@Override
public UseAction getUseAction(ItemStack par1ItemStack) {
return UseAction.BLOCK;
}
@Override
public int getUseDuration(ItemStack par1ItemStack) {
return 72000;
@@ -33,7 +33,7 @@ public class ItemIcePendant extends ItemBauble {
@Override
public void onWornTick(ItemStack stack, LivingEntity entity) {
if(!entity.world.isRemote) {
if(!entity.world.isRemote && !entity.isSneaking()) {
boolean lastOnGround = entity.onGround;
entity.onGround = true;
FrostWalkerEnchantment.freezeNearby(entity, entity.world, new BlockPos(entity), 8);