Fixes a very trivial issue with Ocelots being named incorrectly
This commit is contained in:
Sam 2016-05-31 13:40:20 +01:00
parent 3bdc541c9d
commit c7757117fc

View File

@ -5,6 +5,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map.Entry;
import java.util.UUID;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
@ -42,7 +43,6 @@ import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.managers.chat.ChatStatData;
import nautilus.game.arcade.stats.BlockBreakStatTracker;
import nautilus.game.arcade.stats.BlockPlaceStatTracker;
import java.util.UUID;
import org.bukkit.ChatColor;
import org.bukkit.Effect;
@ -1109,7 +1109,12 @@ public class Build extends SoloGame
event.setCancelled(true);
return;
}
if(event.getSpawnReason() == SpawnReason.SPAWNER_EGG && event.getEntityType() == EntityType.OCELOT)
{
event.getEntity().setCustomName("Ocelot");
}
Player bestPlayer = null;
double bestDist = 0;