"EndermanEndermiteFarms" does not work. (#4111)

This error causes the "ExploitFix.EndermanEndermiteFarms" option in ExperienceConfig to not work.
This commit is contained in:
apachezy 2020-01-28 08:11:57 +08:00 committed by Shane Freeder
parent 0ffcff53b3
commit 657abb76a7

View File

@ -81,7 +81,7 @@ public class EntityListener implements Listener {
//Prevent entities from giving XP if they target endermite
if(event.getTarget() instanceof Endermite)
{
if(event.getEntity().hasMetadata(mcMMO.entityMetadataKey))
if(!event.getEntity().hasMetadata(mcMMO.entityMetadataKey))
event.getEntity().setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);
}
}