mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
fix incorrect ArrayList constructor usage
This commit is contained in:
1 parent
cab79bfe06
commit
68b448b62c
2 files changed
+3
-4
No files matched your search
@@ -1,6 +1,5 @@
|
||||
package mekanism.api.transmitters;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
@@ -64,7 +63,7 @@ public abstract class DynamicNetwork<ACCEPTOR, NETWORK extends DynamicNetwork<AC
|
||||
|
||||
updateCapacity();
|
||||
clampBuffer();
|
||||
queueClientUpdate(new ArrayList<>(transmittersToAdd));
|
||||
queueClientUpdate(transmittersToAdd);
|
||||
transmittersToAdd.clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package mekanism.client;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
@@ -313,7 +313,7 @@ public class ClientTickHandler {
|
||||
newVal = ConfiguratorMode.values().length + newVal;
|
||||
}
|
||||
configurator.setState(stack, ConfiguratorMode.values()[newVal]);
|
||||
Mekanism.packetHandler.sendToServer(new ItemStackMessage(EnumHand.MAIN_HAND, new ArrayList<>(newVal)));
|
||||
Mekanism.packetHandler.sendToServer(new ItemStackMessage(EnumHand.MAIN_HAND, Collections.singletonList(newVal)));
|
||||
event.setCanceled(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user