mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-23 10:35:22 +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":
|
case "SHEEP":
|
||||||
return type == Material.WHEAT;
|
return type == Material.WHEAT;
|
||||||
case "PIG":
|
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":
|
case "CHICKEN":
|
||||||
return type == (is13 ? Material.WHEAT_SEEDS : Material.valueOf("SEEDS"))
|
return type == (is13 ? Material.WHEAT_SEEDS : Material.valueOf("SEEDS"))
|
||||||
|| type == Material.MELON_SEEDS
|
|| type == Material.MELON_SEEDS
|
||||||
|
Loading…
Reference in New Issue
Block a user