Skip to content

Commit aa04386

Browse files
authored
Fix compile (#837)
1 parent 70bb389 commit aa04386

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/ldtteam/structurize/blocks/schematic/BlockSubstitution.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import net.minecraft.world.phys.shapes.EntityCollisionContext;
1818
import net.minecraft.world.phys.shapes.Shapes;
1919
import net.minecraft.world.phys.shapes.VoxelShape;
20+
import org.jetbrains.annotations.Nullable;
2021

2122
/**
2223
* This block is used as a substitution block for the Builder. Every solid block can be substituted by this block in schematics. This helps make schematics independent from
@@ -71,14 +72,14 @@ public VoxelShape getBlockSupportShape(BlockState state, BlockGetter worldIn, Bl
7172
}
7273

7374
@Override
74-
public boolean canPlaceLiquid(BlockGetter worldIn, BlockPos pos, BlockState state, Fluid fluid)
75+
public boolean canPlaceLiquid(@Nullable Player player, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid)
7576
{
7677
// Don't allow water to flow inside despite being non-solid
7778
return false;
7879
}
7980

8081
@Override
81-
public boolean placeLiquid(LevelAccessor worldIn, BlockPos pos, BlockState state, FluidState fluid)
82+
public boolean placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState)
8283
{
8384
return false;
8485
}

0 commit comments

Comments
 (0)