PC-148
Fixes a very trivial issue with Ocelots being named incorrectly
This commit is contained in:
parent
3bdc541c9d
commit
c7757117fc
|
@ -5,6 +5,7 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import mineplex.core.common.util.C;
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.common.util.F;
|
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.managers.chat.ChatStatData;
|
||||||
import nautilus.game.arcade.stats.BlockBreakStatTracker;
|
import nautilus.game.arcade.stats.BlockBreakStatTracker;
|
||||||
import nautilus.game.arcade.stats.BlockPlaceStatTracker;
|
import nautilus.game.arcade.stats.BlockPlaceStatTracker;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Effect;
|
import org.bukkit.Effect;
|
||||||
|
@ -1109,7 +1109,12 @@ public class Build extends SoloGame
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(event.getSpawnReason() == SpawnReason.SPAWNER_EGG && event.getEntityType() == EntityType.OCELOT)
|
||||||
|
{
|
||||||
|
event.getEntity().setCustomName("Ocelot");
|
||||||
|
}
|
||||||
|
|
||||||
Player bestPlayer = null;
|
Player bestPlayer = null;
|
||||||
double bestDist = 0;
|
double bestDist = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue