only report items that are actually in the echest

This commit is contained in:
Leijurv
2018-12-17 19:51:24 -08:00
parent 0249bd5dd7
commit 380a645a6c
@@ -157,7 +157,7 @@ public final class MemoryBehavior extends Behavior {
if (p instanceof SPacketSetSlot) {
SPacketSetSlot slot = (SPacketSetSlot) p;
if (enderChestWindowId != null && slot.getWindowId() == enderChestWindowId) {
if (slot.getSlot() < 27 && enderChestWindowId != null && slot.getWindowId() == enderChestWindowId) {
baritone.getControllerBehavior().trySend(new MessageEchestConfirmed(slot.getSlot(), ControllerBehavior.describe(slot.getStack())));
}
}