mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 23:36:52 +00:00
Loot fixes
This commit is contained in:
1 parent
0039582f28
commit
47c1b58aa5
1 file changed
+2
-1
@@ -47,7 +47,8 @@ public class CommandIrisStudioLoot extends MortarCommand
|
||||
return true;
|
||||
}
|
||||
|
||||
KList<IrisLootTable> tables = IrisWorlds.getProvider(sender.player().getWorld()).getGlUpdate().getLootTables(RNG.r, p.getLocation().getBlock());
|
||||
prov.initGLUpdate();
|
||||
KList<IrisLootTable> tables = prov.getGlUpdate().getLootTables(RNG.r, p.getLocation().getBlock());
|
||||
Inventory inv = Bukkit.createInventory(null, 27 * 2);
|
||||
Iris.proj.getActiveProject().getActiveProvider().getGlUpdate().addItems(true, inv, RNG.r, tables, InventorySlotType.STORAGE, p.getLocation().getBlockX(), p.getLocation().getBlockY(), p.getLocation().getBlockZ(), 1);
|
||||
p.openInventory(inv);
|
||||
|
||||
Reference in new issue
Block a user