UNKNOWN EntityType missing
LadyCailinBot opened this issue ยท 3 comments
WORLDGUARD-3971 - Reported by keyle
The error listet below appears when you use WG/WE with my plugin MyPet as I list the pets with the EntityType of UNKNOWN to prevent other plugins to mistake them for normal entities. A simple null check or filter for UNKNOWN should fix this issue.
Error: https://pastebin.com/yNtQdxVQ
Code: https://github.com/sk89q/WorldGuard/blob/master/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardEntityListener.java#L652
Comment by me4502
Why is MyPet setting it to null? That breaks the contract of the Bukkit method
Comment by keyle
It does not set it to null. MyPet uses the entity type -> UNKNOWN <- for it's entities that are not handled by WG/WE