
EntityTargetLivingEntityEvent to Towny v0.100.3.0
BobbyIB opened this issue · 3 comments
What steps will reproduce the problem?
-
Have Towny
-
Have Epic Fight [ i think ]
What is the expected output?
16:44:22 ERROR]:
Could not pass event EntityDamageByEntityEvent to Towny v0.100.3.0
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:588) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:575) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:241) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:1007) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:867) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:821) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1041) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at net.minecraft.world.entity.LivingEntity.m_6475_(LivingEntity.java:1841) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.world.entity.LivingEntity.m_6469_(LivingEntity.java:1235) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.world.entity.animal.Animal.m_6469_(Animal.java:80) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at com.GACMD.isleofberk.entity.base.dragon.ADragonBase.m_6469_(ADragonBase.java:781) ~[isleofberk-1.2.0.jar%2397!/:1.2.0]
at com.GACMD.isleofberk.entity.dragons.speedstinger.SpeedStinger.m_6469_(SpeedStinger.java:467) ~[isleofberk-1.2.0.jar%2397!/:1.2.0]
at noppes.npcs.entity.EntityNPCInterface.m_7327_(EntityNPCInterface.java:267) ~[CustomNPCs-1.18.2.20230803snapshot.jar%2381!/:1.18.2.20230803]
at yesman.epicfight.world.capabilities.entitypatch.MobPatch.attack(MobPatch.java:169) ~[EpicFight-18.5.24.jar%2389!/:18.5.24]
at yesman.epicfight.api.animation.types.AttackAnimation.hurtCollidingEntities(AttackAnimation.java:232) ~[EpicFight-18.5.24.jar%2389!/:18.5.24]
at yesman.epicfight.api.animation.types.AttackAnimation.attackTick(AttackAnimation.java:206) ~[EpicFight-18.5.24.jar%2389!/:18.5.24]
at yesman.epicfight.api.animation.types.AttackAnimation.tick(AttackAnimation.java:159) ~[EpicFight-18.5.24.jar%2389!/:18.5.24]
at yesman.epicfight.api.animation.ServerAnimator.tick(ServerAnimator.java:74) ~[EpicFight-18.5.24.jar%2389!/:18.5.24]
at yesman.epicfight.world.capabilities.entitypatch.LivingEntityPatch.tick(LivingEntityPatch.java:123) ~[EpicFight-18.5.24.jar%2389!/:18.5.24]
at yesman.epicfight.events.EntityEvents.updateEvent(EntityEvents.java:100) ~[EpicFight-18.5.24.jar%2389!/:18.5.24]
at net.minecraftforge.eventbus.ASMEventHandler_345_EntityEvents_updateEvent_LivingUpdateEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.common.ForgeHooks.onLivingUpdate(ForgeHooks.java:324) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2619) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.world.entity.Mob.m_8119_(Mob.java:349) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at noppes.npcs.entity.EntityNPCInterface.m_8119_(EntityNPCInterface.java:229) ~[CustomNPCs-1.18.2.20230803snapshot.jar%2381!/:1.18.2.20230803]
at noppes.npcs.entity.EntityCustomNpc.m_8119_(EntityCustomNpc.java:46) ~[CustomNPCs-1.18.2.20230803snapshot.jar%2381!/:1.18.2.20230803]
at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:716) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.world.level.Level.m_46653_(Level.java:670) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:383) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:363) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:1122) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:383) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:1050) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:875) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:287) ~[server-1.18.2-20220404.173914-srg.jar%23127!/:?]
at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.IllegalArgumentException: EntityType doesn't have key! Is it UNKNOWN?
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) ~[guava-31.0.1-jre.jar%2337!/:?]
at org.bukkit.entity.EntityType.getKey(EntityType.java:368) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
at com.palmergames.bukkit.towny.utils.CombatUtil.preventDamageCall(CombatUtil.java:296) ~[?:?]
at com.palmergames.bukkit.towny.utils.CombatUtil.preventDamageCall(CombatUtil.java:105) ~[?:?]
at com.palmergames.bukkit.towny.listeners.TownyEntityListener.onEntityDamageByEntity(TownyEntityListener.java:163) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[forge-1.18.2-40.2.21-universal.jar%23132!/:?]
... 41 more
Towny version
Towny v0.100.3.0
Server version
1.18.2 - Java 17
Please use Pastebin.com to link the following files
- Your full server startup from the logs\latest.log:
- Your Towny config.yml: https://pastebin.com/ZcDHKhPB
- Your townyperms.yml: https://pastebin.com/HCVtraTy
- Your log's error: 16:44:22 ERROR]: Could not pass event EntityTargetLivingEntityEvent to Towny v0.100.3.0
24/7
(optional) If this is to do with permissions,
5. Your permissions file:
(optional) If this is to do with chat,
6. Your chatconfig.yml:
7. Your channels.yml:
Need the full error if you want a judgement call made on this
…
On Wed, Aug 21, 2024, 11:08 AM BobbyIB @.> wrote: What steps will reproduce the problem? 1. Have Towny 2. Have Epic Fight [ i think ] What is the expected output? 16:44:22 ERROR]: Could not pass event EntityTargetLivingEntityEvent to Towny v0.100.3.0 24/7 Towny version Towny v0.100.3.0 Server version 1.18.2 - Java 17 Please use Pastebin.com to link the following files 1. Your full server startup from the logs\latest.log: 2. Your Towny config.yml: https://pastebin.com/ZcDHKhPB 3. Your townyperms.yml: https://pastebin.com/HCVtraTy 4. Your log's error: 16:44:22 ERROR]: Could not pass event EntityTargetLivingEntityEvent to Towny v0.100.3.0 24/7 (optional) If this is to do with permissions, 5. Your permissions file: (optional) If this is to do with chat, 6. Your chatconfig.yml: 7. Your channels.yml: — Reply to this email directly, view it on GitHub <#7566>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWZDD4UXWC32UTKIIZAP3ZSTCRNAVCNFSM6AAAAABM4OO7BKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TQNJVGI4TINI . You are receiving this because you are subscribed to this thread.Message ID: @.>
fixed it
Looks like epicfight makes up their entity and doesn't assign it an EntityType, this probably breaks the contract if EntityType isn't allowed to be null. I am not able to confirm that it isn't allowed to be null at my location.
This is an issue that the forge implementation or the mod in question needs to solve and not an issue for Towny.