Skip to content

Commit 0f5eb5c

Browse files
authored
Merge pull request #366 from caoli5288/master
[Particles] Fix displayRenderedImage() rotation
2 parents 23a04c9 + 46c8411 commit 0f5eb5c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/main/java/com/cryptomorin/xseries/particles/Particles.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,19 +2889,19 @@ public static void displayRenderedImage(Map<double[], Color> render, Location lo
28892889

28902890
switch (facing) {
28912891
case NORTH:
2892-
x = location.getX() - pixelLoc[0];
2892+
x = location.getX() + pixelLoc[0];
28932893
y = location.getY() - pixelLoc[1];
28942894
z = location.getZ();
28952895
break;
28962896
case EAST:
28972897
// East
28982898
x = location.getX();
2899-
y = location.getY() - pixelLoc[0];
2900-
z = location.getZ() - pixelLoc[1];
2899+
y = location.getY() - pixelLoc[1];
2900+
z = location.getZ() + pixelLoc[0];
29012901
break;
29022902
case SOUTH:
2903-
x = location.getX() - pixelLoc[1];
2904-
y = location.getY() - pixelLoc[0];
2903+
x = location.getX() - pixelLoc[0];
2904+
y = location.getY() - pixelLoc[1];
29052905
z = location.getZ();
29062906
break;
29072907
case WEST:

0 commit comments

Comments
 (0)