Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Negate "hasCollision" for isTranslucent() also for 1.15.0 and 1.14
Dieser Commit ist enthalten in:
Ursprung
d9240c5626
Commit
1f898cd0d1
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren