You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Load EcoEnchants 8.39.1 and Eco 6.24.2, plus dependencies, and Towny 0.97.5.16 - Recentish versions, exact version number isn't important
Get a sword with Quake, and enter a default (or any other than Farm) Towny claim that isn't yours and you don't have permissions in
Use quake near villagers/animals that should be protected in towny/settings/config protection.mob_types
They get hurt/die
Expected behavior
Mobs in Towny protection.mob_types shouldn't be affected.
If AntigriefTowny.kt@canInjure checks for this using com.palmergames.bukkit.towny.utils.EntityTypeUtil;
and checks EntityTypeUtil.isInstanceOfAny(TownySettings.getProtectedEntityTypes(), victim) then it should resolve the issue.
There is also a newer method called isProtectedEntity but the version of Towny that's included in Eco doesn't have it yet.
Server Information (please complete the following information):
This server is running Paper version git-Paper-186 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 6df4641)
You are 11 version(s) behind
Download the new version at: https://papermc.io/downloads
Previous version: git-Paper-177 (MC: 1.18.1)
eco version 6.24.2
Website: willfp.com
Author: Auxilor
EcoEnchants version 8.39.1
Website: willfp.com
Author: Auxilor
Additional context
Sorry, I have enough knowledge to debug the issue but not to implement/PR the fix. I tried and can't get my version of Eco into EcoEnchants so it doesn't seem to have any effect
The text was updated successfully, but these errors were encountered:
Describe the bug
EcoEnchants enchantment affect NPC entities inside Towny claims.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Mobs in Towny protection.mob_types shouldn't be affected.
If
AntigriefTowny.kt@canInjure
checks for this usingcom.palmergames.bukkit.towny.utils.EntityTypeUtil;
and checks
EntityTypeUtil.isInstanceOfAny(TownySettings.getProtectedEntityTypes(), victim)
then it should resolve the issue.There is also a newer method called
isProtectedEntity
but the version of Towny that's included in Eco doesn't have it yet.Server Information (please complete the following information):
Additional context
Sorry, I have enough knowledge to debug the issue but not to implement/PR the fix. I tried and can't get my version of Eco into EcoEnchants so it doesn't seem to have any effect
The text was updated successfully, but these errors were encountered: