laziest fix ever
This commit is contained in:
parent
a21db7af1b
commit
c933878ea3
1 changed files with 1 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue