mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 22:14:42 +00:00
Intellij quick fixes (#234)
This commit is contained in:
1 parent
b5a2693d7c
commit
924b4dbbf2
259 files changed
+662
-717
No files matched your search
@@ -108,7 +108,7 @@ public class MagnetController {
|
||||
private static List<Item> blacklist = null;
|
||||
|
||||
private static void initBlacklist() {
|
||||
blacklist = new ArrayList<Item>();
|
||||
blacklist = new ArrayList<>();
|
||||
for (String name : Config.magnetBlacklist) {
|
||||
String[] parts = name.split(":");
|
||||
if (parts.length == 2) {
|
||||
@@ -161,8 +161,7 @@ public class MagnetController {
|
||||
}
|
||||
if (gotOne) {
|
||||
if (arraylist == null) {
|
||||
arraylist = new ArrayList<Entity>(
|
||||
Config.magnetMaxItems > 0 ? Config.magnetMaxItems : 20);
|
||||
arraylist = new ArrayList<>(Config.magnetMaxItems > 0 ? Config.magnetMaxItems : 20);
|
||||
}
|
||||
arraylist.add(entity);
|
||||
if (itemsRemaining-- <= 0) {
|
||||
|
||||
Reference in new issue
Block a user