mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
@@ -306,6 +306,11 @@ public class B {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean canPlaceOnto(Material mat, Material onto) {
|
public static boolean canPlaceOnto(Material mat, Material onto) {
|
||||||
|
if ((onto.equals(CRIMSON_NYLIUM) || onto.equals(WARPED_NYLIUM)) &&
|
||||||
|
(mat.equals(CRIMSON_FUNGUS) || mat.equals(CRIMSON_ROOTS) ||mat.equals(WARPED_FUNGUS) || mat.equals(WARPED_ROOTS) ) ){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (isFoliage(mat)) {
|
if (isFoliage(mat)) {
|
||||||
if (!isFoliagePlantable(onto)) {
|
if (!isFoliagePlantable(onto)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user