mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Fix Cacophoniem working as Shield and Snowflake Pendant working while sneaking (#3102)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user