Skip to content

Commit

Permalink
Merge pull request #4040 from kwvanderlinde/bugfix/4033-players-not-a…
Browse files Browse the repository at this point in the history
…ble-to-toggle-lumens-overlay-or-environmental-lights

Fix players not being able to toggle the lumens overlay or environmental lights
  • Loading branch information
cwisniew authored May 8, 2023
2 parents 00bdcbc + 58b778f commit 4e10dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/rptools/maptool/client/AppActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ protected void executeAction() {

/** This is the menu option turns the lumens overlay on and off. */
public static final Action TOGGLE_LUMENS_OVERLAY =
new ZoneAdminClientAction() {
new ZoneClientAction() {
{
init("action.showLumensOverlay");
}
Expand All @@ -1544,7 +1544,7 @@ protected void executeAction() {

/** This is the menu option turns the lumens overlay on and off. */
public static final Action TOGGLE_SHOW_LIGHTS =
new ZoneAdminClientAction() {
new ZoneClientAction() {
{
init("action.showLights");
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/rptools/maptool/model/Zone.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ public Zone(Zone zone, boolean keepIds) {
mapAsset = zone.mapAsset;
fogPaint = zone.fogPaint;
visionType = zone.visionType;
lightingStyle = zone.lightingStyle;

undo = new UndoPerZone(this); // Undo/redo manager isn't copied
setName(zone.getName());
Expand Down

0 comments on commit 4e10dee

Please sign in to comment.