13
0
geforkt von Mirrors/Paper

#1149: Add BlockData#getPlacementMaterial

By: Jishuna <joshl5324@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2023-03-20 10:05:43 +11:00
Ursprung 5a539a8bf5
Commit 3d6c128ff1

Datei anzeigen

@ -617,4 +617,9 @@ public class CraftBlockData implements BlockData {
return state.isFaceSturdy(BlockAccessAir.INSTANCE, BlockPosition.ZERO, CraftBlock.blockFaceToNotch(face), CraftBlockSupport.toNMS(support)); return state.isFaceSturdy(BlockAccessAir.INSTANCE, BlockPosition.ZERO, CraftBlock.blockFaceToNotch(face), CraftBlockSupport.toNMS(support));
} }
@Override
public Material getPlacementMaterial() {
return CraftMagicNumbers.getMaterial(state.getBlock().asItem());
}
} }