Skip to content

Commit

Permalink
removeItem and remove are two entirely different methods
Browse files Browse the repository at this point in the history
let's just burn inventories to the ground at this point. New idea: item sacks, full of dropped_item entities
  • Loading branch information
mcmonkey4eva committed Feb 17, 2020
1 parent 78a2b14 commit c687124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -1583,7 +1583,7 @@ public static void registerTags() {
attribute.fulfill(1);
}
for (ItemTag item : items) {
dummyInv.remove(item.getItemStack());
dummyInv.inventory.removeItem(item.getItemStack().clone());
}
return dummyInv;
});
Expand Down
Expand Up @@ -97,8 +97,8 @@ public class InventoryCommand extends AbstractCommand {
// - inventory keep d:<context.location.inventory> o:snow_ball|ItemScript
//
// @Usage
// Use to remove items specified in a chest from the current player's inventory, regardless of the item count.
// - inventory exclude origin:<context.location.inventory>
// Use to remove all sticks and stones from the player's inventory.
// - inventory exclude origin:stick|stone
//
// @Usage
// Use to swap two players' inventories.
Expand Down

0 comments on commit c687124

Please sign in to comment.