Skip to content

Commit

Permalink
Merge pull request #28 from anatawa12/crash-when-see-marker
Browse files Browse the repository at this point in the history
fix: マーカー見るとクラッシュする
  • Loading branch information
anatawa12 authored Apr 20, 2020
2 parents a25a688 + f39b467 commit 7399d97
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 7399d97

Please sign in to comment.