mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
"EndermanEndermiteFarms" does not work. (#4111)
This error causes the "ExploitFix.EndermanEndermiteFarms" option in ExperienceConfig to not work.
This commit is contained in:
parent
0ffcff53b3
commit
657abb76a7
@ -81,7 +81,7 @@ public class EntityListener implements Listener {
|
|||||||
//Prevent entities from giving XP if they target endermite
|
//Prevent entities from giving XP if they target endermite
|
||||||
if(event.getTarget() instanceof 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);
|
event.getEntity().setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user