Skip to content
This repository has been archived by the owner on Sep 24, 2023. It is now read-only.

Commit

Permalink
Update LightningExchanger.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Aug 5, 2022
1 parent 953618c commit 996ba82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class LightningExchanger(blockState: NovaTileEntityState) : NetworkedTileEntity(
val struckBlock = event.lightning.location.advance(BlockFace.DOWN).block
if (event.cause != Cause.WEATHER || struckBlock.type != Material.LIGHTNING_ROD)
return
val tile = TileEntityManager.getTileEntityAt(struckBlock.location.advance(BlockFace.DOWN), false)
val tile = TileEntityManager.getTileEntity(struckBlock.location.advance(BlockFace.DOWN), false)
if (tile !is LightningExchanger)
return
tile.addEnergyBurst()
Expand Down

0 comments on commit 996ba82

Please sign in to comment.