Skip to content

Commit

Permalink
Update MixinFireBlock.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
ATPStorages authored Apr 12, 2024
1 parent d20d3b2 commit 2010c49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/breadmod/mixin/MixinFireBlock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ class MixinFireBlock {
pRandom: RandomSource, pAge: Int, pFace: Direction,
info: CallbackInfo
) {
if(pLevel.dimensionTypeId() == ModDimensions.BREAD) return info.cancel()

val blockState = pLevel.getBlockState(pPos)
if (blockState.block::class.hasAnnotation<SpecialFireAction>()) {
blockState.onCaughtFire(pLevel, pPos, pFace, null)
info.cancel()
}
}
} // BUG: Annotation ref crashes game
}

0 comments on commit 2010c49

Please sign in to comment.