mirror of
https://github.com/BentoBoxWorld/Greenhouses.git
synced 2024-11-22 02:25:50 +01:00
parent
bba0b33133
commit
10a1d63778
@ -37,7 +37,6 @@ import com.google.common.base.Enums;
|
|||||||
import com.google.common.collect.ArrayListMultimap;
|
import com.google.common.collect.ArrayListMultimap;
|
||||||
import com.google.common.collect.Multimap;
|
import com.google.common.collect.Multimap;
|
||||||
|
|
||||||
import world.bentobox.bentobox.BentoBox;
|
|
||||||
import world.bentobox.bentobox.util.Util;
|
import world.bentobox.bentobox.util.Util;
|
||||||
import world.bentobox.greenhouses.Greenhouses;
|
import world.bentobox.greenhouses.Greenhouses;
|
||||||
import world.bentobox.greenhouses.data.Greenhouse;
|
import world.bentobox.greenhouses.data.Greenhouse;
|
||||||
@ -564,11 +563,9 @@ public class BiomeRecipe implements Comparable<BiomeRecipe> {
|
|||||||
}
|
}
|
||||||
// Underwater plants can only be placed in water and regular plants cannot be placed in water
|
// Underwater plants can only be placed in water and regular plants cannot be placed in water
|
||||||
if (block.block().getType().equals(Material.WATER)) {
|
if (block.block().getType().equals(Material.WATER)) {
|
||||||
BentoBox.getInstance().logDebug("Water block");
|
|
||||||
if (!UNDERWATER_PLANTS.contains(p.plantMaterial())) {
|
if (!UNDERWATER_PLANTS.contains(p.plantMaterial())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
BentoBox.getInstance().logDebug("Water plant");
|
|
||||||
} else if (UNDERWATER_PLANTS.contains(p.plantMaterial())) {
|
} else if (UNDERWATER_PLANTS.contains(p.plantMaterial())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user