laziest fix ever

This commit is contained in:
Chayapak 2023-07-01 20:23:03 +07:00
parent a21db7af1b
commit c933878ea3

View file

@ -235,15 +235,7 @@ public class CorePlugin extends PositionPlugin.Listener {
}
public void packetReceived (ClientboundLevelChunkWithLightPacket packet) {
boolean hasCoreY = false;
for (BlockEntityInfo info : packet.getBlockEntities()) {
if (info.getY() >= fromSize.getY() && info.getY() <= toSize.getY()) {
hasCoreY = true;
break;
}
}
if (hasCoreY) refill();
refill(); // TODO: improve, this is probably the worst way to check
}
// ported from chomens bot js