actually i forgor 1 thing

its the command block update thing which we want to ignore it
This commit is contained in:
Chayapak 2023-04-28 16:05:37 +07:00
parent 54a31bceb0
commit c5c2c653fc

View file

@ -146,6 +146,12 @@ public class CorePlugin extends PositionPlugin.PositionListener {
public void packetReceived (ClientboundBlockUpdatePacket packet) {
final BlockChangeEntry entry = packet.getEntry();
if (
entry.getBlock() == 12369 ||
entry.getBlock() == 12379 ||
entry.getBlock() == 7910
) return;
final Vector3i position = entry.getPosition();
if (isCore(position)) refill();
@ -159,6 +165,12 @@ public class CorePlugin extends PositionPlugin.PositionListener {
for (BlockChangeEntry entry : entries) {
final Vector3i position = entry.getPosition();
if (
entry.getBlock() == 12369 ||
entry.getBlock() == 12379 ||
entry.getBlock() == 7910
) return;
if (isCore(position)) willRefill = true;
}