Fixes bug where chests were not being copied in blueprints

https://github.com/BentoBoxWorld/BentoBox/issues/706
This commit is contained in:
tastybento 2019-05-27 08:52:32 -07:00
parent 76391fd055
commit cca381e51a

View File

@ -265,7 +265,7 @@ public class BlueprintClipboard {
if (blockState instanceof InventoryHolder) { if (blockState instanceof InventoryHolder) {
b.setInventory(new HashMap<>()); b.setInventory(new HashMap<>());
InventoryHolder ih = (InventoryHolder)blockState; InventoryHolder ih = (InventoryHolder)blockState;
for (int i = 0; index < ih.getInventory().getSize(); i++) { for (int i = 0; i < ih.getInventory().getSize(); i++) {
ItemStack item = ih.getInventory().getItem(i); ItemStack item = ih.getInventory().getItem(i);
if (item != null) { if (item != null) {
b.getInventory().put(i, item); b.getInventory().put(i, item);