mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
1.14 blocks
This commit is contained in:
@ -25,7 +25,7 @@ public class BlockMaterial_1_14 implements BlockMaterial {
|
||||
this.defaultState = defaultState;
|
||||
this.material = defaultState.getMaterial();
|
||||
this.craftBlockData = CraftBlockData.fromData(defaultState);
|
||||
this.isTranslucent = ReflectionUtil.getField(Block.class, block, "n");
|
||||
this.isTranslucent = ReflectionUtil.getField(Block.class, block, "v");
|
||||
}
|
||||
|
||||
public Block getBlock() {
|
||||
|
@ -222,8 +222,18 @@ public class AsyncBlock implements Block {
|
||||
int combined = queue.getCombinedId4Data(x, y, z, 0);
|
||||
BlockType type = BlockTypes.getFromStateId(combined);
|
||||
switch (type.getInternalId()) {
|
||||
case BlockID.SIGN:
|
||||
case BlockID.WALL_SIGN:
|
||||
case BlockID.ACACIA_SIGN:
|
||||
case BlockID.SPRUCE_SIGN:
|
||||
case BlockID.ACACIA_WALL_SIGN:
|
||||
case BlockID.BIRCH_SIGN:
|
||||
case BlockID.SPRUCE_WALL_SIGN:
|
||||
case BlockID.BIRCH_WALL_SIGN:
|
||||
case BlockID.DARK_OAK_SIGN:
|
||||
case BlockID.DARK_OAK_WALL_SIGN:
|
||||
case BlockID.JUNGLE_SIGN:
|
||||
case BlockID.JUNGLE_WALL_SIGN:
|
||||
case BlockID.OAK_SIGN:
|
||||
case BlockID.OAK_WALL_SIGN:
|
||||
return new AsyncSign(this, combined);
|
||||
default:
|
||||
return new AsyncBlockState(this, combined);
|
||||
|
Reference in New Issue
Block a user