diff --git a/vassal-shim/release/vassal-shim.jar b/vassal-shim/release/vassal-shim.jar index 8054b53..a5b4dfe 100644 Binary files a/vassal-shim/release/vassal-shim.jar and b/vassal-shim/release/vassal-shim.jar differ diff --git a/vassal-shim/src/vassal_shim/VassalShim.java b/vassal-shim/src/vassal_shim/VassalShim.java index 0fade33..471e003 100644 --- a/vassal-shim/src/vassal_shim/VassalShim.java +++ b/vassal-shim/src/vassal_shim/VassalShim.java @@ -306,9 +306,9 @@ public class VassalShim // http://www.gamesquad.com/forums/index.php?threads/new-program-to-help-set-up-vasl-scenarios.148281/post-1983751 if ( cmd instanceof AddPiece ) { AddPiece addPieceCmd = (AddPiece) cmd ; - if ( addPieceCmd.getTarget() instanceof DynamicProperty ) { - GamePiece target = addPieceCmd.getTarget() ; - // NOTE: We can't check for target.getName() == "User-Labeled", it seems to get changed to the first label :shrug: + GamePiece target = addPieceCmd.getTarget() ; + GamePiece gamePiece = Decorator.getInnermost( target ) ; + if ( gamePiece.getName().equals( "User-Labeled" ) ) { // yup - parse the label content ArrayList separators = new ArrayList() ;