mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 02:04:51 +00:00
Probe stub: nothing stands on air, as on every platform
This commit is contained in:
1 parent
bed3f5b9cc
commit
f26d438ff0
1 file changed
+3
@@ -247,6 +247,9 @@ public final class StubPlatform implements IrisPlatform {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlaceOnto(PlatformBlockState onto) {
|
public boolean canPlaceOnto(PlatformBlockState onto) {
|
||||||
|
if (onto.isAir()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return !isDecorant() || onto instanceof StubBlockState soil && StubPlants.holdsPlants(soil.blockKey());
|
return !isDecorant() || onto instanceof StubBlockState soil && StubPlants.holdsPlants(soil.blockKey());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user