1.16.2-rc1

This commit is contained in:
modmuss50 2020-08-07 21:51:48 +01:00
parent cfd9c7f10c
commit 6e001dd9cc
6 changed files with 11 additions and 11 deletions
src/main/java/techreborn/blockentity/generator

View file

@ -81,7 +81,7 @@ public class LightningRodBlockEntity extends PowerAcceptorBlockEntity implements
}
LightningEntity lightningBolt = EntityType.LIGHTNING_BOLT.create(world);
lightningBolt.method_29495(Vec3d.ofBottomCenter(world.getTopPosition(Heightmap.Type.MOTION_BLOCKING, getPos())));
lightningBolt.refreshPositionAfterTeleport(Vec3d.ofBottomCenter(world.getTopPosition(Heightmap.Type.MOTION_BLOCKING, getPos())));
if (!world.isClient) {
world.spawnEntity(lightningBolt);