WorldGuard

WorldGuard

8M Downloads

UNKNOWN EntityType missing

LadyCailinBot opened this issue ยท 3 comments

commented

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

commented

Comment by me4502

Why is MyPet setting it to null? That breaks the contract of the Bukkit method

commented

Comment by me4502

Try the latest WorldEdit build, this issue appears to mostly be called by Bukkit refusing to add key-related methods.