Negate "hasCollision" for isTranslucent() also for 1.15.0 and 1.14

This commit is contained in:
Aurora 2020-05-25 18:32:41 +02:00 committed by dordsor21
parent d9240c5626
commit 1f898cd0d1
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public class BlockMaterial_1_14 implements BlockMaterial {
this.material = defaultState.getMaterial();
this.craftBlockData = CraftBlockData.fromData(defaultState);
this.craftMaterial = craftBlockData.getMaterial();
this.isTranslucent = ReflectionUtil.getField(Block.class, block, "v");
this.isTranslucent = !(boolean) ReflectionUtil.getField(Block.class, block, "v");
}
public Block getBlock() {

View File

@ -27,7 +27,7 @@ public class BlockMaterial_1_15 implements BlockMaterial {
this.material = defaultState.getMaterial();
this.craftBlockData = CraftBlockData.fromData(defaultState);
this.craftMaterial = craftBlockData.getMaterial();
this.isTranslucent = ReflectionUtil.getField(Block.class, block, "v");
this.isTranslucent = !(boolean) ReflectionUtil.getField(Block.class, block, "v");
}
public Block getBlock() {