Fix #124 containers
This commit is contained in:
@@ -363,12 +363,17 @@ export class PegasusActorSheet extends ActorSheet {
|
||||
/* -------------------------------------------- */
|
||||
async _onDropItem(event, dragData) {
|
||||
const item = fromUuidSync(dragData.uuid)
|
||||
let itemFull
|
||||
if (item == undefined) {
|
||||
item = this.actor.items.get( dragData.uuid )
|
||||
itemFull = this.actor.items.get( dragData.uuid )
|
||||
} else {
|
||||
if (item && item.system) {
|
||||
itemFull = item
|
||||
} else {
|
||||
itemFull = await PegasusUtility.searchItem( item )
|
||||
}
|
||||
}
|
||||
console.log("Dropped", item)
|
||||
|
||||
let itemFull = await PegasusUtility.searchItem( item )
|
||||
console.log("Dropped", item, itemFull)
|
||||
let ret = await this.actor.preprocessItem( event, itemFull, true )
|
||||
if ( ret ) {
|
||||
super._onDropItem(event, dragData)
|
||||
|
||||
Reference in New Issue
Block a user