mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-16 20:41:56 +01:00
This commit is a complete rewrite of the target event handling logic in the ArenaListener class. Instead of the complex, inconsistent code structure with too many line breaks between control flow branches, we just have a thin logic wrapper that delegates the event handling to smaller, more focused functions that handle arena pets, arena monsters, and foreign entities on their own. A couple of auxiliary methods are introduced to try to limit the amount of warnings produced by checking set membership with `contains()` when the entity/target is an Entity and the collection is a sub type. Fixes #572 |
||
---|---|---|
.. | ||
main | ||
test |