Hotfix PlaceItemUtils and Blackstone placing Walls in 1.19
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
f82d5815ee
Commit
fcb1ce4e4b
@ -31,7 +31,7 @@ public class PlaceItemWrapper15 implements PlaceItemWrapper {
|
||||
String nonWall = material.name().replace("_WALL_", "").replace("WALL_", "").replace("_WALL", "");
|
||||
try {
|
||||
Material nonWallMaterial = Material.valueOf(nonWall);
|
||||
if (nonWallMaterial != material) {
|
||||
if (nonWallMaterial != material && nonWallMaterial.isItem() && !nonWallMaterial.isBlock()) {
|
||||
BLOCK_MATERIAL_TO_WALL_BLOCK_MATERIAL.put(nonWallMaterial, material);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
@ -162,8 +162,9 @@ public class PlaceItemUtils {
|
||||
if (blockData == null) return PlaceItemResult.NO_BLOCK_ITEM_HELD;
|
||||
|
||||
// Placing a Block inside of Water should set it to Waterlogged
|
||||
if (blockData instanceof Waterlogged) {
|
||||
((Waterlogged) blockData).setWaterlogged(block.getType() == Material.WATER);
|
||||
if (blockData instanceof Waterlogged && block.getType() == Material.WATER) {
|
||||
Levelled levelled = (Levelled) block.getBlockData();
|
||||
((Waterlogged) blockData).setWaterlogged(levelled.getLevel() == levelled.getMaximumLevel());
|
||||
}
|
||||
|
||||
if (blockData instanceof Slab) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren