Optimize FilterScript
Dieser Commit ist enthalten in:
Ursprung
d030763ba1
Commit
5cf8037f2f
@ -48,13 +48,10 @@ public class FilterScript implements RunnableScript {
|
|||||||
|
|
||||||
int blockZ = location.getBlockZ();
|
int blockZ = location.getBlockZ();
|
||||||
if (offset > 0) {
|
if (offset > 0) {
|
||||||
if (blockZ > bz - offset) return true;
|
return (blockZ > bz - offset) || (blockZ < rz + offset);
|
||||||
if (blockZ < rz + offset) return true;
|
|
||||||
} else {
|
} else {
|
||||||
if (blockZ < bz - offset) return true;
|
return (blockZ < bz - offset) || (blockZ > rz + offset);
|
||||||
if (blockZ > rz + offset) return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren