Skip to content

Commit

Permalink
fix: re-enable NetworkHooks#getEntitySpawningPacket for thrown sword
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Dec 14, 2022
1 parent 7b52f5d commit a8551d0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@ protected void onHitEntity(EntityHitResult pResult) {
}
}



@Override
@SuppressWarnings("unchecked")
public Packet<ClientGamePacketListener> getAddEntityPacket() {
throw new UnsupportedOperationException();
return (Packet<ClientGamePacketListener>) NetworkHooks.getEntitySpawningPacket(this);
}

private boolean friendlyFire(Entity target) {
Expand Down

0 comments on commit a8551d0

Please sign in to comment.