diff --git a/src/de/steamwar/misslewars/scripts/implemented/FilterScript.java b/src/de/steamwar/misslewars/scripts/implemented/FilterScript.java index 9088c4e..e9fd427 100644 --- a/src/de/steamwar/misslewars/scripts/implemented/FilterScript.java +++ b/src/de/steamwar/misslewars/scripts/implemented/FilterScript.java @@ -48,13 +48,10 @@ public class FilterScript implements RunnableScript { int blockZ = location.getBlockZ(); if (offset > 0) { - if (blockZ > bz - offset) return true; - if (blockZ < rz + offset) return true; + return (blockZ > bz - offset) || (blockZ < rz + offset); } else { - if (blockZ < bz - offset) return true; - if (blockZ > rz + offset) return true; + return (blockZ < bz - offset) || (blockZ > rz + offset); } - return false; }; break; default: