More Performance Tweaks
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-08-06 22:12:48 -04:00
parent 3d7df7742d
commit db0620b3e2

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;
}