Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
635d235a87
Commit
8100667da5
@ -54,7 +54,7 @@ public class BlockPlaceBehaviour implements SmartPlaceBehaviour {
|
|||||||
smartPlaceResult = SmartPlaceResult.APPLIED;
|
smartPlaceResult = SmartPlaceResult.APPLIED;
|
||||||
} else if (blockData instanceof Rotatable) {
|
} else if (blockData instanceof Rotatable) {
|
||||||
Rotatable rotatable = (Rotatable) blockData;
|
Rotatable rotatable = (Rotatable) blockData;
|
||||||
rotatable.setRotation(rotatable.getRotation());
|
rotatable.setRotation(rotatable.getRotation().getOppositeFace());
|
||||||
smartPlaceResult = SmartPlaceResult.APPLIED;
|
smartPlaceResult = SmartPlaceResult.APPLIED;
|
||||||
}
|
}
|
||||||
block.setBlockData(blockData);
|
block.setBlockData(blockData);
|
||||||
|
@ -72,7 +72,11 @@ public class BlockRotatingBehaviour implements SmartPlaceBehaviour {
|
|||||||
directional.setFacing(blockFace);
|
directional.setFacing(blockFace);
|
||||||
}
|
}
|
||||||
} else if (blockData instanceof Rotatable) {
|
} else if (blockData instanceof Rotatable) {
|
||||||
((Rotatable) blockData).setRotation(blockFace);
|
try {
|
||||||
|
((Rotatable) blockData).setRotation(blockFace);
|
||||||
|
} catch (Exception e) {
|
||||||
|
// Ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
block.setBlockData(blockData);
|
block.setBlockData(blockData);
|
||||||
return SmartPlaceResult.APPLIED;
|
return SmartPlaceResult.APPLIED;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren