Balkon's WeaponMod: Legacy

Balkon's WeaponMod: Legacy

103k Downloads

1.7.10 When the player attacks with spears and halberds, they will attack entities that cannot be attacked, such as skeleton arrows.

taka2914 opened this issue ยท 2 comments

commented

Regarding the title.
If a player uses left-click to swing a long-reach weapon such as a spear or halberd while overlapping an entity that cannot attack, such as a skeleton arrow, the player will receive an "attack an invalid entity" warning and be rejected by the server.
No other weapons that don't have a modified range had any issues.

Version 1.23.0

commented

Interesting - that is one of the many possibilities I did not take into account when porting this code:

if (raytraceResult != null && raytraceResult.entityHit != null && raytraceResult.entityHit != player && raytraceResult.entityHit.hurtResistantTime == 0) {

I will try to publish a hotfix release today, which fixes this (by checking whether the entity is a EntityLivingBase) and adds proper entity item models and a config GUI in 1.7.10!

commented

As far as I can tell, other versions should not be affected by this as they use predicates for checking this