1 parent b9dcba4 commit fec4958Copy full SHA for fec4958
2 files changed
res/plugin.yml
@@ -1,6 +1,6 @@
1
name: RedLib
2
main: redempt.redlib.RedLib
3
-version: 2022-08-18 17:41
+version: 2022-08-18 18:37
4
author: Redempt
5
api-version: 1.13
6
load: STARTUP
src/redempt/redlib/multiblock/Structure.java
@@ -142,7 +142,8 @@ public StructureBlock getBlock(Block block) {
142
int y = offset.getBlockY();
143
int z = rotator.getRotatedBlockZ();
144
if (getRotator().isMirrored()) {
145
- int ignored = getRotator().getRotation() % 2 != 0 ? (x = -x) : (z = -z);
+ if (getRotator().getRotation() % 2 != 0) x *= -1;
146
+ else z *= -1;
147
}
148
if (x < 0 || y < 0 || z < 0
149
|| x >= dim[0] || y >= dim[1] || z >= dim[2]) {
0 commit comments