Skip to content

Commit

Permalink
fix: マーカー見るとクラッシュする
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Apr 20, 2020
1 parent a25a688 commit f39b467
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/anatawa12/fixRtm/rtm/Hooks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ fun <K, V>MovingSoundMaker_loadSoundJson_nullCheck(map: Map<K, V>?, 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
}
Expand Down

0 comments on commit f39b467

Please sign in to comment.