If existing blocks are an instance of container, clear the inventory.
This commit is contained in:
dordsor21
2020-05-14 12:57:26 +01:00
parent dd852801cc
commit 8fb9f29ab7
2 changed files with 6 additions and 2 deletions

View File

@ -214,10 +214,8 @@ public class StateWrapper {
if (mat != null) {
ItemStack item = new ItemStack(mat, (int) amounts[i]);
inv.setItem(slots[i], item);
PlotSquared.log(mat.name() + " " + slots[i]);
}
}
PlotSquared.log(inv.getStorageContents());
container.update(true, true);
return true;
}