Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
deny crafting inventories for dInventory, fixes DenizenScript#1872
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 16, 2019
1 parent 22c22f6 commit 13ede02
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,10 @@ else if (holder instanceof Player) {
idHolder = (dNPC.fromEntity((Player) holder)).identify();
return;
}
if (inventory.getType() == InventoryType.CRAFTING) {
idType = "player";
inventory = ((Player) holder).getInventory();
}
if (inventory.getType() == InventoryType.ENDER_CHEST) {
idType = "enderchest";
}
Expand Down

0 comments on commit 13ede02

Please sign in to comment.