mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
SPIGOT-4003: Fix TropicalFish.getType
This commit is contained in:
parent
cfc30bb382
commit
764b81ced2
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user