Skip to content

Commit fec4958

Browse files
committed
Battles were fought over this
1 parent b9dcba4 commit fec4958

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

res/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: RedLib
22
main: redempt.redlib.RedLib
3-
version: 2022-08-18 17:41
3+
version: 2022-08-18 18:37
44
author: Redempt
55
api-version: 1.13
66
load: STARTUP

src/redempt/redlib/multiblock/Structure.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ public StructureBlock getBlock(Block block) {
142142
int y = offset.getBlockY();
143143
int z = rotator.getRotatedBlockZ();
144144
if (getRotator().isMirrored()) {
145-
int ignored = getRotator().getRotation() % 2 != 0 ? (x = -x) : (z = -z);
145+
if (getRotator().getRotation() % 2 != 0) x *= -1;
146+
else z *= -1;
146147
}
147148
if (x < 0 || y < 0 || z < 0
148149
|| x >= dim[0] || y >= dim[1] || z >= dim[2]) {

0 commit comments

Comments
 (0)