More Performance Tweaks
EnergonRelics/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2020-08-06 22:12:48 -04:00
parent 3d7df7742d
commit db0620b3e2
1 changed files with 2 additions and 1 deletions

View File

@ -46,10 +46,11 @@ public abstract class MixinEntity implements PortalCooldownEntity {
int l = MathHelper.ceil(box.maxY);
int m = MathHelper.floor(box.minZ);
int n = MathHelper.ceil(box.maxZ);
BlockPos.Mutable pos = new BlockPos.Mutable();
for (int p = i; p < j; ++p) {
for (int q = k; q < l; ++q) {
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())) {
return true;
}