Skip to content

Commit

Permalink
bugfix: the Pachinko app doesn't handle 5 action strings
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 12, 2025
1 parent 46c6aa3 commit 73fac5b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
com.jme3 and jme3test software packages Copyright (c) 2009-2024 jMonkeyEngine
jme3utilities software packages Copyright (c) 2013-2024 Stephen Gold
jme3utilities software packages Copyright (c) 2013-2025 Stephen Gold
vhacd software package Copyright (c) 2016, Riccardo Balbo

All rights reserved.
Expand Down
24 changes: 15 additions & 9 deletions MinieExamples/src/main/java/jme3utilities/minie/test/Pachinko.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2022-2024 Stephen Gold
Copyright (c) 2022-2025 Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -322,17 +322,23 @@ public void onAction(String actionString, boolean ongoing, float tpf) {
InputMode.suspendAndActivate(editor);
return;

case "simulate 1":
restartSimulation(1);
case "simulate 4":
restartSimulation(4);
return;
case "simulate 2":
restartSimulation(2);
case "simulate 5":
restartSimulation(5);
return;
case "simulate 3":
restartSimulation(3);
case "simulate 6":
restartSimulation(6);
return;
case "simulate 4":
restartSimulation(4);
case "simulate 7":
restartSimulation(7);
return;
case "simulate 8":
restartSimulation(8);
return;
case "simulate 9":
restartSimulation(9);
return;

default:
Expand Down

0 comments on commit 73fac5b

Please sign in to comment.