SPIGOT-6130: Fix API loot table generation with certain contexts
This commit is contained in:
parent
5c77bd2816
commit
aa8206a857
@ -75,6 +75,7 @@ public class CraftLootTable implements org.bukkit.loot.LootTable {
|
||||
WorldServer handle = ((CraftWorld) loc.getWorld()).getHandle();
|
||||
|
||||
LootTableInfo.Builder builder = new LootTableInfo.Builder(handle);
|
||||
builder.set(LootContextParameters.ORIGIN, new Vec3D(loc.getX(), loc.getY(), loc.getZ()));
|
||||
if (getHandle() != LootTable.EMPTY) {
|
||||
// builder.luck(context.getLuck());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user