Fix for pig correctFood in 1.8

This commit is contained in:
Brianna 2019-07-09 11:34:32 -04:00
parent 53d3625db3
commit f15bc9d6ba

View File

@ -80,7 +80,7 @@ public class InteractListeners implements Listener {
case "SHEEP":
return type == Material.WHEAT;
case "PIG":
return type == Material.CARROT || type == Material.BEETROOT || type == Material.POTATO;
return type == Material.CARROT || (instance.isServerVersionAtLeast(ServerVersion.V1_8) && type == Material.BEETROOT) || type == Material.POTATO;
case "CHICKEN":
return type == (is13 ? Material.WHEAT_SEEDS : Material.valueOf("SEEDS"))
|| type == Material.MELON_SEEDS