mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
Fix CFI generation
This commit is contained in:
@ -15,6 +15,7 @@ public class BlockMaterial_1_14 implements BlockMaterial {
|
||||
private final Material material;
|
||||
private final boolean isTranslucent;
|
||||
private final CraftBlockData craftBlockData;
|
||||
private final org.bukkit.Material craftMaterial;
|
||||
|
||||
public BlockMaterial_1_14(Block block) {
|
||||
this(block, block.getBlockData());
|
||||
@ -25,6 +26,7 @@ public class BlockMaterial_1_14 implements BlockMaterial {
|
||||
this.defaultState = defaultState;
|
||||
this.material = defaultState.getMaterial();
|
||||
this.craftBlockData = CraftBlockData.fromData(defaultState);
|
||||
this.craftMaterial = craftBlockData.getMaterial();
|
||||
this.isTranslucent = ReflectionUtil.getField(Block.class, block, "v");
|
||||
}
|
||||
|
||||
@ -51,7 +53,7 @@ public class BlockMaterial_1_14 implements BlockMaterial {
|
||||
|
||||
@Override
|
||||
public boolean isFullCube() {
|
||||
return defaultState.g();
|
||||
return craftMaterial.isOccluding();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -276,9 +276,6 @@ public class BukkitPlayer extends AbstractPlayerActor {
|
||||
Player tmp = Bukkit.getPlayer(getUniqueId());
|
||||
if (tmp != null) {
|
||||
player = tmp;
|
||||
} else {
|
||||
System.out.println("Invalid player " + player.getName());
|
||||
new Exception().printStackTrace();
|
||||
}
|
||||
}
|
||||
return player;
|
||||
|
Reference in New Issue
Block a user