Skip to content

Commit

Permalink
Remove coordinates from dropped drawers to allow stacking
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Feb 23, 2020
1 parent 1bc3fc1 commit 36dd2f9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ protected ItemStack getMainDrop (BlockState state, TileEntityDrawers tile) {
if (hasContents) {
CompoundNBT tiledata = new CompoundNBT();
tile.write(tiledata);

tiledata.remove("x");
tiledata.remove("y");
tiledata.remove("z");

data.put("tile", tiledata);
drop.setTag(data);
}
Expand Down

0 comments on commit 36dd2f9

Please sign in to comment.