Skip to content

Commit

Permalink
Fix crashing when trying to replace snow. (Pulled from 1.12), and upd…
Browse files Browse the repository at this point in the history
…ate mappings to fix the damn build -_-
  • Loading branch information
alexbegt committed Aug 12, 2017
1 parent 2ea1a1b commit 4ca3e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -3,7 +3,7 @@ mod_version=4.1.0
minecraft_version=1.10.2

forge_version=12.18.3.2316
mappings_version=snapshot_20161115
mappings_version=snapshot_20161116

mantle_version=1.1.5.+
tconstruct_version=2.6.3.+
Expand Down
Expand Up @@ -229,7 +229,7 @@ protected void placeTrunk(World world, BlockPos pos, int height)
IBlockState state = world.getBlockState(blockpos);
Block block = state.getBlock();

if (block == null || block.isAir(state, world, pos) || block.isLeaves(state, world, pos) || block.isReplaceable(world, pos))
if (block == null || block.isAir(state, world, blockpos) || block.isLeaves(state, world, blockpos) || block.isReplaceable(world, blockpos))
{
world.setBlockState(blockpos, this.log, 2);
}
Expand Down

0 comments on commit 4ca3e1c

Please sign in to comment.