Skip to content

Commit

Permalink
Actually I'm not that failure, I was just very tired that afternoon. …
Browse files Browse the repository at this point in the history
…Revert ab433a7, closes #1
  • Loading branch information
NathanPB committed Aug 1, 2020
1 parent a6bfbac commit 8dc410a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ class TrialGriefPrevention :
val isInProtectedArea = isBlockProtected(entity.world, entity.pos.toBlockPos())
val toProtectedArea = isBlockProtected(entity.world, pos.toBlockPos())

if (isInProtectedArea && toProtectedArea) {
// The first real use of xor in my entire life
// 22/07/2020, 5:19 AM - Passo Fundo, Brazil
if (isInProtectedArea xor toProtectedArea) {
return ActionResult.FAIL
}
}
Expand Down

0 comments on commit 8dc410a

Please sign in to comment.