When a player attacks or interacts with an object that applies knockback, any nearby player also receives the knockback effect even though they did not hit the object. Knockback should only be applied to the player or entity that directly triggered the interaction.
Steps to Reproduce
- Have Player A and Player B stand close to each other.
- Ensure there is an object that applies knockback when hit (e.g. Gate close at spawn that required Needolin to open).
- Player A hits the knockback-enabled object.
- Observe Player B’s movement.
Expected Behavior
- Only the player who hit the object (Player A) should receive knockback.
- Nearby players should remain unaffected unless they directly hit the object.
Actual Behavior
- Nearby players (Player B) also receive knockback despite not interacting with the object.
- The knockback appears to be applied based on proximity rather than direct interaction.
When a player attacks or interacts with an object that applies knockback, any nearby player also receives the knockback effect even though they did not hit the object. Knockback should only be applied to the player or entity that directly triggered the interaction.