Archiviert
13
0

SPIGOT-4003: Fix TropicalFish.getType

Dieser Commit ist enthalten in:
md_5 2018-07-15 18:52:21 +10:00
Ursprung cfc30bb382
Commit 764b81ced2

Datei anzeigen

@ -5,6 +5,7 @@ import java.util.Map;
import net.minecraft.server.EntityTropicalFish;
import org.bukkit.DyeColor;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.TropicalFish;
public class CraftTropicalFish extends CraftFish implements TropicalFish {
@ -23,6 +24,11 @@ public class CraftTropicalFish extends CraftFish implements TropicalFish {
return "CraftTropicalFish";
}
@Override
public EntityType getType() {
return EntityType.TROPICAL_FISH;
}
@Override
public DyeColor getPatternColor() {
return getPatternColor(getHandle().getVariant());