mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Changed info handling, empty or null values delete now the map entry.
This commit is contained in:
parent
e424635d20
commit
ddf42c7620
1 changed files with 5 additions and 1 deletions
|
@ -662,7 +662,11 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
if (info == null) {
|
||||
info = new HashMap<>();
|
||||
}
|
||||
info.put(key, value);
|
||||
if (value == null || value.isEmpty()) {
|
||||
info.remove(key);
|
||||
} else {
|
||||
info.put(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue