mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 08:07:51 +00:00
semi working fabric inventories
This commit is contained in:
1 parent
df2acfaa40
commit
4171768cc9
11 files changed
+134
-9
No files matched your search
@@ -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);
|
||||
|
||||
+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