From 73fac5b2d50ba81774167da46a641ec78d08ea91 Mon Sep 17 00:00:00 2001 From: stephengold Date: Sun, 12 Jan 2025 13:23:47 -0800 Subject: [PATCH] bugfix: the Pachinko app doesn't handle 5 action strings --- LICENSE | 2 +- .../jme3utilities/minie/test/Pachinko.java | 24 ++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/LICENSE b/LICENSE index 812948820..d5341ae02 100644 --- a/LICENSE +++ b/LICENSE @@ -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. diff --git a/MinieExamples/src/main/java/jme3utilities/minie/test/Pachinko.java b/MinieExamples/src/main/java/jme3utilities/minie/test/Pachinko.java index e3c205706..2abec3044 100644 --- a/MinieExamples/src/main/java/jme3utilities/minie/test/Pachinko.java +++ b/MinieExamples/src/main/java/jme3utilities/minie/test/Pachinko.java @@ -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 @@ -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: