Hotfix PlaceItemUtils for Slab/Stairs/Trapdoor
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
fcb1ce4e4b
Commit
6197fd81c1
@ -170,12 +170,21 @@ public class PlaceItemUtils {
|
||||
if (blockData instanceof Slab) {
|
||||
// Slabs can be set at Top or Bottom
|
||||
((Slab) blockData).setType(isHitHalfTop(player) ? Slab.Type.TOP : Slab.Type.BOTTOM);
|
||||
if (againstSide == BlockFace.DOWN) {
|
||||
((Slab) blockData).setType(Slab.Type.TOP);
|
||||
}
|
||||
} else if (blockData instanceof Stairs) {
|
||||
// Stairs can be set at Top or Bottom
|
||||
((Stairs) blockData).setHalf(isHitHalfTop(player) ? Bisected.Half.TOP : Bisected.Half.BOTTOM);
|
||||
if (againstSide == BlockFace.DOWN) {
|
||||
((Stairs) blockData).setHalf(Bisected.Half.TOP);
|
||||
}
|
||||
} else if (blockData instanceof TrapDoor) {
|
||||
// TrapDoors can be set at Top or Bottom
|
||||
((TrapDoor) blockData).setHalf(isHitHalfTop(player) ? Bisected.Half.TOP : Bisected.Half.BOTTOM);
|
||||
if (againstSide == BlockFace.DOWN) {
|
||||
((TrapDoor) blockData).setHalf(Bisected.Half.TOP);
|
||||
}
|
||||
} else if (blockData instanceof Chain) {
|
||||
// Chains are always rotated against the block you place against
|
||||
Orientable orientable = (Orientable) blockData;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren