mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 20:11:35 +01:00
Fix extendo grip breaking item frames instead of making the item pop off
This commit is contained in:
parent
f85894b232
commit
fb7b2e64b2
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ public class ExtendoGripItem extends Item {
|
|||
if (!isHoldingExtendoGrip(player))
|
||||
return;
|
||||
Entity target = event.getTarget();
|
||||
if (!target.attackEntityFrom(DamageSource.causePlayerDamage(player), 0))
|
||||
if (target instanceof ItemFrameEntity || !target.attackEntityFrom(DamageSource.causePlayerDamage(player), 0))
|
||||
return;
|
||||
int strength = 2;
|
||||
float yaw = entity.rotationYaw * ((float) Math.PI / 180F);
|
||||
|
|
Loading…
Reference in a new issue