Wyatt J Herkamp
added a comment - That is why some code was failing.
I was trying to make a plugin to stop spawners from being burned and I couldn't get it to work.
I am guessing https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches/Entity.patch#191
Cannot reproduce, both of these code blocks work independently.