Skip to content

Commit

Permalink
Merge pull request #10 from trackedout/Fix-isDeckedOutDoor-check
Browse files Browse the repository at this point in the history
Fix is decked out door check
  • Loading branch information
CaseyMichael authored Jan 3, 2024
2 parents 336dd7c + c62fccf commit e5067bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/trackedout/AgroNet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ object AgroNet : ModInitializer {

AttackBlockCallback.EVENT.register { player, world, hand, pos, direction ->
val state = world.getBlockState(pos)
if (state.isDeckedOutDoor()) {
if (!state.isDeckedOutDoor()) {
return@register ActionResult.PASS
}

Expand Down

0 comments on commit e5067bc

Please sign in to comment.