1.15-pre2 loads of new mappings

This commit is contained in:
modmuss50 2019-11-26 19:03:36 +00:00
parent 937b184ace
commit bfdde04892
21 changed files with 45 additions and 42 deletions

View file

@ -115,7 +115,7 @@ public class CableBlock extends BlockWithEntity {
}
private BlockState makeConnections(World world, BlockPos pos) {
Boolean down = canConnectTo(world, pos.method_10079(Direction.DOWN, 1), Direction.UP);
Boolean down = canConnectTo(world, pos.offset(Direction.DOWN, 1), Direction.UP);
Boolean up = canConnectTo(world, pos.up(), Direction.DOWN);
Boolean north = canConnectTo(world, pos.north(), Direction.SOUTH);
Boolean east = canConnectTo(world, pos.east(), Direction.WEST);

View file

@ -107,7 +107,7 @@ public class BlockRubberLog extends LogBlock {
}
if (random.nextInt(50) == 0) {
Direction facing = Direction.fromHorizontal(random.nextInt(4));
if (worldIn.getBlockState(pos.method_10079(Direction.DOWN, 1)).getBlock() == this
if (worldIn.getBlockState(pos.offset(Direction.DOWN, 1)).getBlock() == this
&& worldIn.getBlockState(pos.up()).getBlock() == this) {
worldIn.setBlockState(pos, state.with(HAS_SAP, true).with(SAP_SIDE, facing));
}