geforkt von Mirrors/Paper
#1149: Add BlockData#getPlacementMaterial
By: Jishuna <joshl5324@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
5a539a8bf5
Commit
3d6c128ff1
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren