Skip to content

Commit

Permalink
[Forge] Stop "supporting" some invalid blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal committed Jun 23, 2016
1 parent d70f716 commit fa64fa5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ public WorldData getWorldData() {

@Override
public boolean isValidBlockType(int id) {
return (id == 0) || (net.minecraft.block.Block.getBlockById(id) != null);
Block block = Block.getBlockById(id);
return Block.getIdFromBlock(block) == id;
}

@Override
Expand Down

0 comments on commit fa64fa5

Please sign in to comment.