diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index 705317b6..8a6c3bed 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -489,13 +489,17 @@ export class RdDCalendrier extends Application { } game.system.rdd.calendrier.calendrierPos.top = yPos; game.system.rdd.calendrier.calendrierPos.left = xPos; - game.settings.set("foundryvtt-reve-de-dragon", "calendrier-pos", duplicate(game.system.rdd.calendrier.calendrierPos) ); + if ( game.user.isGM) { + game.settings.set("foundryvtt-reve-de-dragon", "calendrier-pos", duplicate(game.system.rdd.calendrier.calendrierPos) ); + } } } } else if(isRightMB){ game.system.rdd.calendrier.calendrierPos.top = 200; game.system.rdd.calendrier.calendrierPos.left = 200; - game.settings.set("foundryvtt-reve-de-dragon", "calendrier-pos", duplicate(game.system.rdd.calendrier.calendrierPos) ); + if ( game.user.isGM) { + game.settings.set("foundryvtt-reve-de-dragon", "calendrier-pos", duplicate(game.system.rdd.calendrier.calendrierPos) ); + } this.setPos(game.system.rdd.calendrier.calendrierPos); } }); diff --git a/system.json b/system.json index ae68410d..fd7f1074 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.3.28", + "version": "1.3.29", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9",