Skip to content

Commit

Permalink
Merge pull request #3648 from Phergus/issue3642getState
Browse files Browse the repository at this point in the history
Fix for getting state status
  • Loading branch information
Phergus authored Sep 20, 2022
2 parents 973bf60 + fb91494 commit 827e535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/rptools/maptool/model/Token.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 827e535

Please sign in to comment.