mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-26 02:17:38 +01:00
Fix for pig correctFood in 1.8
This commit is contained in:
parent
53d3625db3
commit
f15bc9d6ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user