From 67e95229cbf3fd3e4c2b7bdf5e197c93dbd0c009 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Fri, 8 Jan 2021 08:19:44 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20objet=20dans=20lui-m=C3=AAme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index bf367be9..0d75eba6 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -282,7 +282,7 @@ export class RdDUtility { let dropID = $(event.target).parents(".item").attr("data-item-id"); // Only relevant if container drop if ( dropID ) { // Dropped over an item !!! let objetId = dragData.id || dragData.data._id; - if ( actorSheet.objetVersConteneur[objetId] != dropID ) { + if ( actorSheet.objetVersConteneur[objetId] != dropID && objetId != dropID) { if ( actorSheet.actor.testConteneurCapacite(objetId, dropID) ) { await actorSheet.actor.enleverDeConteneur(objetId, actorSheet.objetVersConteneur[objetId]); await actorSheet.actor.ajouterAConteneur(objetId, dropID);