ploppyperson / StackMob-5

A plugin for bukkit servers, which aims to reduce the lag that the server experiences by combining several entities into a single entity.
GNU General Public License v3.0
55 stars 21 forks source link

Console Error Spam #294

Open MrLiam2614 opened 4 months ago

MrLiam2614 commented 4 months ago

We recently upgraded from 1.20.1 to 1.20.6 (waiting for a sub version of 1.21) but we noticed that the console keeps spamming errors like this:

[20:22:26 WARN]: [StackMob] Task #267 for StackMob v5.9.2 generated an exception
java.lang.IllegalArgumentException: No enum constant uk.antiperson.stackmob.config.EntityConfig.NameTagStackMode.DONT_JOIN
        at java.base/java.lang.Enum.valueOf(Enum.java:293) ~[?:?]
        at org.bukkit.craftbukkit.legacy.FieldRename.valueOf(FieldRename.java:57) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.config.EntityConfig$NameTagStackMode.BUKKIT_CUSTOM_METHOD_org_bukkit_craftbukkit_legacy_FieldRename_valueOf(EntityConfig.java) ~[StackMob-5.9.2.jar:?]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.config.EntityConfig$NameTagStackMode.valueOf(EntityConfig.java:411) ~[StackMob-5.9.2.jar:?]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.config.EntityConfig.getNameTagStackMode(EntityConfig.java:344) ~[StackMob-5.9.2.jar:?]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.entity.StackEntity.dropNameTag(StackEntity.java:342) ~[StackMob-5.9.2.jar:?]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.entity.StackEntity.merge(StackEntity.java:332) ~[StackMob-5.9.2.jar:?]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.tasks.MergeTask.checkEntity(MergeTask.java:60) ~[StackMob-5.9.2.jar:?]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.tasks.MergeTask.lambda$run$0(MergeTask.java:105) ~[StackMob-5.9.2.jar:?]
        at StackMob-5.9.2.jar/uk.antiperson.stackmob.tasks.MergeTask.run(MergeTask.java:109) ~[StackMob-5.9.2.jar:?]
        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1699) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:467) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1571) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1231) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-148-20f5165]
        at java.base/java.lang.Thread.run(Thread.java:1595) ~[?:?]

Also, somtimes some mobs are stacked but you cannot even se the "tag" over their head (eg: "10x Zombie" etc..), sometimes you do

ploppyperson commented 4 months ago

DONT_JOIN isn't a valid nametag-mode. It can be either DROP, JOIN or IGNORE. https://github.com/ploppyperson/StackMob-5/blob/a150743237ce01f6d7a76eba901bd82b5d04bbd0/src/main/resources/config.yml#L46