Fixed left right switchup

This commit is contained in:
D4rkr34lm
2025-12-05 13:43:26 +01:00
parent 6ab0d207fc
commit 057c0ae9a0
2 changed files with 3 additions and 3 deletions
@@ -19,9 +19,9 @@ public class EmptySimulatorCursor extends ASimulatorCursor {
@Override
public void onClick(Optional<Location> clickedLocation, boolean clickedOnEntity, Action clickAction) {
if (clickAction == Action.LEFT_CLICK_AIR) {
if (clickAction == Action.RIGHT_CLICK_AIR) {
SimulatorStorage.openSimulatorSelector(owner);
} else if (clickAction == Action.LEFT_CLICK_BLOCK) {
} else if (clickAction == Action.RIGHT_CLICK_BLOCK) {
SWAnvilInv anvilInv = new SWAnvilInv(owner, "Name");
anvilInv.setCallback(name -> {
Simulator sim = SimulatorStorage.getSimulator(name);
@@ -26,7 +26,7 @@ public class SimulatorCursor extends ASimulatorCursor {
@Override
public void onClick(Optional<Location> clickedLocation, boolean clickedOnEntity, Action clickAction) {
if (clickAction == Action.RIGHT_CLICK_AIR || clickAction == Action.RIGHT_CLICK_BLOCK) {
if (clickAction == Action.LEFT_CLICK_AIR || clickAction == Action.LEFT_CLICK_BLOCK) {
SimulatorExecutor.run(owner, simulator, null);
} else if (!clickedOnEntity || clickedLocation.isEmpty()) {
new SimulatorGui(owner, simulator);