forked from SteamWar/SteamWar
Fixed left right switchup
This commit is contained in:
+2
-2
@@ -19,9 +19,9 @@ public class EmptySimulatorCursor extends ASimulatorCursor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(Optional<Location> clickedLocation, boolean clickedOnEntity, Action clickAction) {
|
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);
|
SimulatorStorage.openSimulatorSelector(owner);
|
||||||
} else if (clickAction == Action.LEFT_CLICK_BLOCK) {
|
} else if (clickAction == Action.RIGHT_CLICK_BLOCK) {
|
||||||
SWAnvilInv anvilInv = new SWAnvilInv(owner, "Name");
|
SWAnvilInv anvilInv = new SWAnvilInv(owner, "Name");
|
||||||
anvilInv.setCallback(name -> {
|
anvilInv.setCallback(name -> {
|
||||||
Simulator sim = SimulatorStorage.getSimulator(name);
|
Simulator sim = SimulatorStorage.getSimulator(name);
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ public class SimulatorCursor extends ASimulatorCursor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(Optional<Location> clickedLocation, boolean clickedOnEntity, Action clickAction) {
|
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);
|
SimulatorExecutor.run(owner, simulator, null);
|
||||||
} else if (!clickedOnEntity || clickedLocation.isEmpty()) {
|
} else if (!clickedOnEntity || clickedLocation.isEmpty()) {
|
||||||
new SimulatorGui(owner, simulator);
|
new SimulatorGui(owner, simulator);
|
||||||
|
|||||||
Reference in New Issue
Block a user