mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
[Forge] Stop "supporting" some invalid blocks.
This commit is contained in:
parent
d70f7168e5
commit
fa64fa5bed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user