Improve Lightning Spawning
All checks were successful
EnergonRelics/pipeline/head This commit looks good
All checks were successful
EnergonRelics/pipeline/head This commit looks good
This commit is contained in:
parent
487a1aa6e0
commit
10684b4236
@ -57,7 +57,7 @@ public class LightningRodBlockEntity extends EnergyProviderBlockEntity implement
|
|||||||
if (random.nextDouble() <= HardcodedConfig.LIGHTNING_ROD_CHANCE) {
|
if (random.nextDouble() <= HardcodedConfig.LIGHTNING_ROD_CHANCE) {
|
||||||
LightningEntity entity = EntityType.LIGHTNING_BOLT.create(getWorld());
|
LightningEntity entity = EntityType.LIGHTNING_BOLT.create(getWorld());
|
||||||
assert entity != null;
|
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);
|
entity.method_29498(true);
|
||||||
Objects.requireNonNull(getWorld()).spawnEntity(entity);
|
Objects.requireNonNull(getWorld()).spawnEntity(entity);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user