Improve Lightning Spawning
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-07-23 14:36:50 -04:00
parent 487a1aa6e0
commit 10684b4236

View File

@ -57,7 +57,7 @@ public class LightningRodBlockEntity extends EnergyProviderBlockEntity implement
if (random.nextDouble() <= HardcodedConfig.LIGHTNING_ROD_CHANCE) {
LightningEntity entity = EntityType.LIGHTNING_BOLT.create(getWorld());
assert entity != null;
entity.updatePosition(getPos().getX() + 0.5d, getPos().getY() + 0.5d, getPos().getZ() + 0.5d);
entity.updatePosition(getPos().getX() + 0.5d, getPos().getY(), getPos().getZ() + 0.5d);
entity.method_29498(true);
Objects.requireNonNull(getWorld()).spawnEntity(entity);