mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-10-07 11:07:33 +02:00
Fixes bug where chests were not being copied in blueprints
https://github.com/BentoBoxWorld/BentoBox/issues/706
This commit is contained in:
parent
76391fd055
commit
cca381e51a
@ -265,7 +265,7 @@ public class BlueprintClipboard {
|
||||
if (blockState instanceof InventoryHolder) {
|
||||
b.setInventory(new HashMap<>());
|
||||
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);
|
||||
if (item != null) {
|
||||
b.getInventory().put(i, item);
|
||||
|
Loading…
Reference in New Issue
Block a user