mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 04:22:00 +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))
|
if (!isHoldingExtendoGrip(player))
|
||||||
return;
|
return;
|
||||||
Entity target = event.getTarget();
|
Entity target = event.getTarget();
|
||||||
if (!target.attackEntityFrom(DamageSource.causePlayerDamage(player), 0))
|
if (target instanceof ItemFrameEntity || !target.attackEntityFrom(DamageSource.causePlayerDamage(player), 0))
|
||||||
return;
|
return;
|
||||||
int strength = 2;
|
int strength = 2;
|
||||||
float yaw = entity.rotationYaw * ((float) Math.PI / 180F);
|
float yaw = entity.rotationYaw * ((float) Math.PI / 180F);
|
||||||
|
|
Loading…
Reference in a new issue