mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
fixed the fix I just fixed
This commit is contained in:
parent
b355ec5ccd
commit
ea92a1b75a
1 changed files with 2 additions and 2 deletions
|
@ -120,12 +120,12 @@ public class TileEntityFieldCreator extends TileEntityImpl implements ITickableT
|
||||||
List<ItemStack> drops = state.getDrops(new LootContext.Builder((ServerWorld) this.world)
|
List<ItemStack> drops = state.getDrops(new LootContext.Builder((ServerWorld) this.world)
|
||||||
.withParameter(LootParameters.field_237457_g_, Vector3d.copyCentered(pos))
|
.withParameter(LootParameters.field_237457_g_, Vector3d.copyCentered(pos))
|
||||||
.withParameter(LootParameters.BLOCK_STATE, state)
|
.withParameter(LootParameters.BLOCK_STATE, state)
|
||||||
.withParameter(LootParameters.TOOL, tool == null ? new ItemStack(Items.DIAMOND_PICKAXE) : tool)
|
.withParameter(LootParameters.TOOL, tool.isEmpty() ? new ItemStack(Items.DIAMOND_PICKAXE) : tool)
|
||||||
.withNullableParameter(LootParameters.BLOCK_ENTITY, this.world.getTileEntity(pos)));
|
.withNullableParameter(LootParameters.BLOCK_ENTITY, this.world.getTileEntity(pos)));
|
||||||
this.world.destroyBlock(pos, false);
|
this.world.destroyBlock(pos, false);
|
||||||
for (ItemStack stack : drops)
|
for (ItemStack stack : drops)
|
||||||
Block.spawnAsEntity(this.world, pos, stack);
|
Block.spawnAsEntity(this.world, pos, stack);
|
||||||
chunk.drainAura(spot, tool != null ? 300 : 100);
|
chunk.drainAura(spot, tool.isEmpty() ? 300 : 100);
|
||||||
this.sendParticles();
|
this.sendParticles();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue