Compare commits

..

3 Commits
1.0.1 ... main

Author SHA1 Message Date
gitea
3974b0f312 [no ci] 1.1.0 2025-03-24 17:53:27 +00:00
624d894a82 [minor]: Merge pull request '[minor]: only publish publicrolls' (#4) from only-publish-publicrolls into main
All checks were successful
ci / ci (push) Successful in 34s
Reviewed-on: #4
2025-03-24 18:52:54 +01:00
Arindy
f250daae56 [minor]: only publish publicrolls
All checks were successful
ci / ci (push) Successful in 1m14s
ci / ci (pull_request) Successful in 34s
2025-03-24 18:50:01 +01:00
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "foundryvtt-dice-tower", "name": "foundryvtt-dice-tower",
"version": "1.0.1", "version": "1.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "foundryvtt-dice-tower", "name": "foundryvtt-dice-tower",
"version": "1.0.1", "version": "1.1.0",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"devDependencies": { "devDependencies": {
"@3d-dice/dice-box-threejs": "^0.0.12", "@3d-dice/dice-box-threejs": "^0.0.12",

View File

@ -1,6 +1,6 @@
{ {
"name": "foundryvtt-dice-tower", "name": "foundryvtt-dice-tower",
"version": "1.0.1", "version": "1.1.0",
"description": "Roll your dice in a fancy overlay", "description": "Roll your dice in a fancy overlay",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"scripts": { "scripts": {

View File

@ -56,8 +56,8 @@ Hooks.once("ready", () => {
module.service.register() module.service.register()
}) })
Hooks.on("preCreateChatMessage", (message: ChatMessage): void => { Hooks.on("preCreateChatMessage", (message: ChatMessage, _: any, settings: any): void => {
if (message.isRoll && getSetting("sendToDiceTower") as Boolean) { if (message.isRoll && settings?.rollMode === "publicroll" && getSetting("sendToDiceTower") as Boolean) {
let results = [] let results = []
let command = ""; let command = "";
message.rolls.forEach(roll => { message.rolls.forEach(roll => {