Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
version 3.2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Apr 9, 2022
1 parent 3bb8b52 commit 310b332
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 3.2.14
## 3.2.14-15

- Some minor update

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "foundryvtt-mountup",
"title": "FoundryVTT Mount Up!",
"description": "Allows tokens to carry or be carried by other tokens. This is completely system agnostic, and fully customizable to fit right into your game.",
"version": "3.2.14",
"version": "3.2.15",
"scripts": {
"package": "gulp package",
"build": "gulp build && gulp link",
Expand Down
8 changes: 4 additions & 4 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "foundryvtt-mountup",
"title": "FoundryVTT Mount Up!",
"description": "Allows tokens to carry or be carried by other tokens. This is completely system agnostic, and fully customizable to fit right into your game.",
"version": "3.2.14",
"version": "3.2.15",
"author": "Brunhine, p4535992",
"type": "module",
"socket": true,
Expand Down Expand Up @@ -50,9 +50,9 @@
"compatibleCoreVersion": "9",
"url": "https://github.com/p4535992/MountUp",
"manifest": "https://github.com/p4535992/MountUp/releases/latest/download/module.json",
"download": "https://github.com/p4535992/MountUp/releases/download/v3.2.14/module.zip",
"readme": "https://github.com/p4535992/MountUp/blob/v3.2.14/README.md",
"changelog": "https://github.com/p4535992/MountUp/blob/v3.2.14/changelog.md",
"download": "https://github.com/p4535992/MountUp/releases/download/v3.2.15/module.zip",
"readme": "https://github.com/p4535992/MountUp/blob/v3.2.15/README.md",
"changelog": "https://github.com/p4535992/MountUp/blob/v3.2.15/changelog.md",
"bugs": "https://github.com/p4535992/MountUp/issues",
"allowBugReporter": true,
"manifestPlusVersion": "1.2.0",
Expand Down
2 changes: 0 additions & 2 deletions src/module/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import EmbeddedCollection from '@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/abstract/embedded-collection.mjs';
import { EffectChangeData } from '@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/data/data.mjs/effectChangeData';
import type {
ActiveEffectData,
ActorData,
Expand Down
8 changes: 4 additions & 4 deletions src/module/module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import API from './api';
import { MountHud } from './mountHud';
import { MountManager } from './mountManager';
import { TokenData } from '@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/data/data.mjs';
import type { TokenData } from '@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/data/data.mjs';
import CONSTANTS from './constants';
import { debug, getElevationToken, warn } from './lib/lib';
import HOOKS from './hooks';
Expand Down Expand Up @@ -190,12 +190,12 @@ export const readyHooks = async () => {
}
});

Hooks.on('preDeleteToken', async (scene, token: Token) => {
const isPlayerOwned = <boolean>token.document.isOwner;
Hooks.on('preDeleteToken', async (tokenDocument: TokenDocument, data:any, updateData: TokenData) => {
const isPlayerOwned = <boolean>tokenDocument.isOwner;
if (!game.user?.isGM && !isPlayerOwned) {
return;
}
await MountManager.handleTokenDelete(token.id);
await MountManager.handleTokenDelete(<string>tokenDocument.id);
//return true;
});

Expand Down

0 comments on commit 310b332

Please sign in to comment.