Fix height brush

This commit is contained in:
Jesse Boyd
2018-09-23 17:10:56 +10:00
parent e452fc9556
commit 00ac111e46
2 changed files with 7 additions and 4 deletions

View File

@ -18,6 +18,9 @@ public class BlockStateImpl extends BlockState {
public BlockMaterial getMaterial() {
if (this.material == null) {
if (type == BlockTypes.__RESERVED__) {
return this.material = type.getMaterial();
}
synchronized (this) {
if (this.material == null) {
this.material = WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS).getRegistries().getBlockRegistry().getMaterial(this);