diff --git a/src/main/java/com/anatawa12/fixRtm/rtm/Hooks.kt b/src/main/java/com/anatawa12/fixRtm/rtm/Hooks.kt index e4c674f7..7560975d 100644 --- a/src/main/java/com/anatawa12/fixRtm/rtm/Hooks.kt +++ b/src/main/java/com/anatawa12/fixRtm/rtm/Hooks.kt @@ -36,7 +36,8 @@ fun MovingSoundMaker_loadSoundJson_nullCheck(map: Map?, domain: Stri var BlockMarker_onMarkerActivated_player: EntityPlayer? = null @Suppress("unused") // Used with Transform -fun BlockMarker_onMarkerActivated(player: EntityPlayer) { +fun BlockMarker_onMarkerActivated(player: EntityPlayer?) { + if (player == null) return if (!player.world.isRemote) BlockMarker_onMarkerActivated_player = player }