More Performance Tweaks
All checks were successful
EnergonRelics/pipeline/head This commit looks good
All checks were successful
EnergonRelics/pipeline/head This commit looks good
This commit is contained in:
parent
3d7df7742d
commit
db0620b3e2
@ -46,10 +46,11 @@ public abstract class MixinEntity implements PortalCooldownEntity {
|
|||||||
int l = MathHelper.ceil(box.maxY);
|
int l = MathHelper.ceil(box.maxY);
|
||||||
int m = MathHelper.floor(box.minZ);
|
int m = MathHelper.floor(box.minZ);
|
||||||
int n = MathHelper.ceil(box.maxZ);
|
int n = MathHelper.ceil(box.maxZ);
|
||||||
|
BlockPos.Mutable pos = new BlockPos.Mutable();
|
||||||
for (int p = i; p < j; ++p) {
|
for (int p = i; p < j; ++p) {
|
||||||
for (int q = k; q < l; ++q) {
|
for (int q = k; q < l; ++q) {
|
||||||
for (int r = m; r < n; ++r) {
|
for (int r = m; r < n; ++r) {
|
||||||
BlockPos pos = new BlockPos(p, q, r);
|
pos.set(p, q, r);
|
||||||
if (test.test(getEntityWorld().getBlockState(pos).getBlock())) {
|
if (test.test(getEntityWorld().getBlockState(pos).getBlock())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user