mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-27 12:35:17 +01:00
fix
This commit is contained in:
parent
a1f5c70395
commit
bef273b0ca
@ -110,9 +110,9 @@ public class InteractListeners implements Listener {
|
|||||||
|| type == Material.BEETROOT_SEEDS
|
|| type == Material.BEETROOT_SEEDS
|
||||||
|| type == Material.PUMPKIN_SEEDS;
|
|| type == Material.PUMPKIN_SEEDS;
|
||||||
case HORSE:
|
case HORSE:
|
||||||
return type == Material.GOLDEN_APPLE || type == Material.GOLDEN_CARROT;
|
return (type == Material.GOLDEN_APPLE || type == Material.GOLDEN_CARROT) && ((Horse)entity).isTamed();
|
||||||
case WOLF:
|
case WOLF:
|
||||||
return type == Material.RAW_BEEF
|
return (type == Material.RAW_BEEF
|
||||||
|| type == Material.RAW_CHICKEN
|
|| type == Material.RAW_CHICKEN
|
||||||
|| type == Material.MUTTON
|
|| type == Material.MUTTON
|
||||||
|| type == Material.PORK
|
|| type == Material.PORK
|
||||||
@ -123,9 +123,11 @@ public class InteractListeners implements Listener {
|
|||||||
|| type == Material.COOKED_MUTTON
|
|| type == Material.COOKED_MUTTON
|
||||||
|| type == Material.GRILLED_PORK
|
|| type == Material.GRILLED_PORK
|
||||||
|| type == Material.COOKED_RABBIT
|
|| type == Material.COOKED_RABBIT
|
||||||
|| type == Material.COOKED_FISH;
|
|| type == Material.COOKED_FISH)
|
||||||
|
&& ((Wolf) entity).isTamed();
|
||||||
case OCELOT:
|
case OCELOT:
|
||||||
return type == Material.RAW_FISH;
|
return (type == Material.RAW_FISH)
|
||||||
|
&& ((Ocelot) entity).isTamed();
|
||||||
case RABBIT:
|
case RABBIT:
|
||||||
return type == Material.CARROT || type == Material.GOLDEN_CARROT || type == Material.YELLOW_FLOWER;
|
return type == Material.CARROT || type == Material.GOLDEN_CARROT || type == Material.YELLOW_FLOWER;
|
||||||
case LLAMA:
|
case LLAMA:
|
||||||
|
Loading…
Reference in New Issue
Block a user