Fix reset deck in Foundry v9 #9

This commit is contained in:
2022-03-18 19:30:18 +01:00
parent ae2d926324
commit 633525a9e5
3 changed files with 14 additions and 13 deletions

View File

@@ -378,7 +378,7 @@ export class SoSActor extends Actor {
async addObjectToContainer( itemId, containerId ) {
let container = this.data.items.find( item => item.id == containerId && item.type == 'container')
let object = this.data.items.find( item => item.id == itemId )
//console.log("Found", container, object)
console.log("Found", container, object)
if ( container ) {
if ( object.type == 'container') {
ui.notifications.warn("Only 1 level of container... sorry");