1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Merge pull request #2305 from LinoxGH/patch-3

Edited markDirty() to clean connectorCache
This commit is contained in:
TheBusyBiscuit 2020-09-09 23:33:06 +02:00 committed by GitHub
commit 00e71904b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,6 +325,12 @@ abstract class ChestTerminalNetwork extends Network {
return System.nanoTime() - timestamp;
}
}
@Override
public void markDirty(@Nonnull Location l) {
connectorCache.remove(l);
super.markDirty(l);
}
private void updateTerminal(Location l, BlockMenu terminal, int slot, int index, List<ItemStackAndInteger> items) {
if (items.size() > index) {