Skip to content

Commit

Permalink
Merge pull request #3912 from kwvanderlinde/bugfix/3908-lib-tokens-ar…
Browse files Browse the repository at this point in the history
…e-removed-after-cell-type-change
  • Loading branch information
cwisniew authored Apr 12, 2023
2 parents 2dbcfbf + a959851 commit b8a3d46
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
import net.rptools.maptool.model.drawing.Drawable;
import net.rptools.maptool.model.drawing.DrawnElement;
import net.rptools.maptool.model.drawing.Pen;
import net.rptools.maptool.model.zones.TokensAdded;
import net.rptools.maptool.model.zones.TokensRemoved;
import net.rptools.maptool.model.zones.ZoneAdded;
import net.rptools.maptool.model.zones.ZoneRemoved;
import net.rptools.maptool.server.proto.*;
import net.rptools.maptool.transfer.AssetProducer;
Expand Down Expand Up @@ -461,8 +463,8 @@ private void handle(PutZoneMsg msg) {
server.getCampaign().putZone(zone);

// Now we have fire off adding the tokens in the zone
new MapToolEventBus().getMainEventBus().post(new TokensRemoved(zone, zone.getTokens()));
new MapToolEventBus().getMainEventBus().post(new ZoneRemoved(zone));
new MapToolEventBus().getMainEventBus().post(new ZoneAdded(zone));
new MapToolEventBus().getMainEventBus().post(new TokensAdded(zone, zone.getTokens()));
}

private void handle(PutLabelMsg msg) {
Expand Down

0 comments on commit b8a3d46

Please sign in to comment.