CoreProtect

CoreProtect

1M Downloads

About villagers to convert zombie villagers

canniand opened this issue ยท 0 comments

commented

core:leaves-1.21.1
Plugin version:22.4
Converting zombie villagers after a zombie kills a villager is given the following error:
[12:16:12 INFO]: Villager Villager['Villager'/31644, uuid='ba872586-85b3-497f-b800-d7d30707b613', l='ServerLevel[world]', x=-312.00, y=103.00, z=171.00, cpos=[-20, 10], tl=280, v=true] died, message: 'Villager was slain by Zombie'
[12:16:13 WARN]: java.io.NotSerializableException: org.bukkit.craftbukkit.entity.CraftVillager$CraftProfession
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1200)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[12:16:13 WARN]: at java.base/java.util.ArrayList.writeObject(ArrayList.java:948)
[12:16:13 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[12:16:13 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[12:16:13 WARN]: at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1072)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[12:16:13 WARN]: at java.base/java.util.ArrayList.writeObject(ArrayList.java:948)
[12:16:13 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[12:16:13 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[12:16:13 WARN]: at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1072)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1529)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1451)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194)
[12:16:13 WARN]: at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.database.statement.EntityStatement.insert(EntityStatement.java:27)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.database.logger.EntityKillLogger.log(EntityKillLogger.java:49)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.EntityKillProcess.process(EntityKillProcess.java:24)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:205)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[12:16:13 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
[12:16:13 WARN]: java.lang.NullPointerException: Cannot invoke "java.sql.ResultSet.next()" because "resultSet" is null
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.database.logger.EntityKillLogger.log(EntityKillLogger.java:51)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.EntityKillProcess.process(EntityKillProcess.java:24)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:205)
[12:16:13 WARN]: at CoreProtect-22.4.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[12:16:13 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)