Intellij quick fixes (#234)

This commit is contained in:
Alexdoru authored and GitHub committed 2026-05-04 13:25:46 +02:00
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) {