Improve Lightning Spawning
EnergonRelics/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2020-07-23 14:36:50 -04:00
parent 487a1aa6e0
commit 10684b4236
1 changed files with 1 additions and 1 deletions

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);