I have so much to show you

- Prevent basins from endlessly queueing up particle information when no players are near #6837
This commit is contained in:
simibubi 2024-10-08 17:11:56 +02:00
parent 8e50ad4cfd
commit 034babf125

View file

@ -412,7 +412,8 @@ public class BasinBlockEntity extends SmartBlockEntity implements IHaveGoggleInf
if (filter != null && !filter.test(itemStack))
continue;
visualizedOutputItems.add(IntAttached.withZero(itemStack));
if (visualizedOutputItems.size() < 3)
visualizedOutputItems.add(IntAttached.withZero(itemStack));
update = true;
remainder = ItemHandlerHelper.insertItemStacked(targetInv, itemStack.copy(), false);
@ -446,7 +447,8 @@ public class BasinBlockEntity extends SmartBlockEntity implements IHaveGoggleInf
update = true;
iterator.remove();
visualizedOutputFluids.add(IntAttached.withZero(fluidStack));
if (visualizedOutputFluids.size() < 3)
visualizedOutputFluids.add(IntAttached.withZero(fluidStack));
}
}