From fb91494c46957cdc2d76fdcf64fa1fbf7851cbe1 Mon Sep 17 00:00:00 2001 From: Phergus <34379254+Phergus@users.noreply.github.com> Date: Tue, 20 Sep 2022 11:31:45 -0600 Subject: [PATCH] Fix for getting state status Macro function code couldn't handle double value in States. Storing Boolean instead when passed a Boolean. --- src/main/java/net/rptools/maptool/model/Token.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/rptools/maptool/model/Token.java b/src/main/java/net/rptools/maptool/model/Token.java index 3060662f14..2d6c646574 100644 --- a/src/main/java/net/rptools/maptool/model/Token.java +++ b/src/main/java/net/rptools/maptool/model/Token.java @@ -1725,7 +1725,7 @@ public Object setState(String aState, Object aValue) { // setBarVisible sends a boolean to show/hide a bar if (aValue instanceof Boolean) { if ((Boolean) aValue) { - return state.put(aState, 1.0); + return state.put(aState, aValue); } else { return state.remove(aState); }