Optimize FilterScript
Dieser Commit ist enthalten in:
Ursprung
d030763ba1
Commit
5cf8037f2f
@ -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:
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren