Currently DEEventHandler.isValidEntity calls String.equals on an ITextComponent from entity.getName(), this always fails so the blacklist does not work. PR changes this to entity.getType().getRegistryName().toString().
This does have the side-effect of changing the blacklist to use registry IDs instead of whatever format entity.getName() returns, but since it didn't work before, this doesn't break anything.
Also check isValidEntity on the powered spawner, so that mobs on the blacklist can't spawn even if the player got a soul for one previously.
DEEventHandler.isValidEntity
callsString.equals
on anITextComponent
fromentity.getName()
, this always fails so the blacklist does not work. PR changes this toentity.getType().getRegistryName().toString()
.This does have the side-effect of changing the blacklist to use registry IDs instead of whatever format
entity.getName()
returns, but since it didn't work before, this doesn't break anything.isValidEntity
on the powered spawner, so that mobs on the blacklist can't spawn even if the player got a soul for one previously.