mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
[Forge] Stop "supporting" some invalid blocks.
This commit is contained in:
parent
d70f7168e5
commit
fa64fa5bed
@ -339,7 +339,8 @@ public class ForgeWorld extends AbstractWorld {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValidBlockType(int id) {
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user