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) {
|
if (blockData instanceof Slab) {
|
||||||
// Slabs can be set at Top or Bottom
|
// Slabs can be set at Top or Bottom
|
||||||
((Slab) blockData).setType(isHitHalfTop(player) ? Slab.Type.TOP : Slab.Type.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) {
|
} else if (blockData instanceof Stairs) {
|
||||||
// Stairs can be set at Top or Bottom
|
// Stairs can be set at Top or Bottom
|
||||||
((Stairs) blockData).setHalf(isHitHalfTop(player) ? Bisected.Half.TOP : Bisected.Half.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) {
|
} else if (blockData instanceof TrapDoor) {
|
||||||
// TrapDoors can be set at Top or Bottom
|
// TrapDoors can be set at Top or Bottom
|
||||||
((TrapDoor) blockData).setHalf(isHitHalfTop(player) ? Bisected.Half.TOP : Bisected.Half.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) {
|
} else if (blockData instanceof Chain) {
|
||||||
// Chains are always rotated against the block you place against
|
// Chains are always rotated against the block you place against
|
||||||
Orientable orientable = (Orientable) blockData;
|
Orientable orientable = (Orientable) blockData;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren