port: Spring to Life (1.21.5)

This commit is contained in:
Martin Prokoph
2025-03-26 14:14:28 +01:00
parent 91c26cf5d0
commit 8061ee64d8
4 changed files with 12 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ public class PuddleBlock extends Block implements PolymerBlock, BlockWithElement
// Check if there are puddles on the sides of the block above
for (i = 2; i < 6; ++i) {
BlockPos pos1 = pos.up();
if (world.getBlockState(pos1.offset(Direction.byId(i))).getBlock() instanceof PuddleBlock) {
if (world.getBlockState(pos1.offset(Direction.byIndex(i))).getBlock() instanceof PuddleBlock) {
// When sides of the block above have a puddle, don't place the puddle
return false;
}
@@ -124,7 +124,7 @@ public class PuddleBlock extends Block implements PolymerBlock, BlockWithElement
// Check if there are puddles on the sides of the block below
for (i = 2; i < 6; ++i) {
BlockPos pos1 = pos.down();
if (world.getBlockState(pos1.offset(Direction.byId(i))).getBlock() instanceof PuddleBlock) {
if (world.getBlockState(pos1.offset(Direction.byIndex(i))).getBlock() instanceof PuddleBlock) {
// When sides of the block below have a puddle, don't place the puddle
return false;
}