mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-14 19:56:19 +00:00
semi working fabric inventories
This commit is contained in:
@@ -62,6 +62,7 @@ public class LootTable {
|
||||
newStack.setAmount(1);
|
||||
int slot = r.nextInt(i.getSize());
|
||||
ItemStack slotItem = i.getItem(slot);
|
||||
System.out.println("attempt: " + (slotItem == null ? null : slotItem.getHandle()));
|
||||
if(slotItem == null) {
|
||||
i.setItem(slot, newStack);
|
||||
stack.setAmount(stack.getAmount() - 1);
|
||||
|
||||
@@ -25,5 +25,6 @@ public class BufferedLootApplication implements BufferedItem {
|
||||
}
|
||||
Container container = (Container) data;
|
||||
table.fillInventory(container.getInventory(), new FastRandom(origin.hashCode()));
|
||||
data.update(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user