Skip to content

Commit

Permalink
fix(android): 不应使用 Arrays.asList 生成不可变 List
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Dec 16, 2022
1 parent 33a278c commit b6fa180
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
import io.github.thebusybiscuit.slimefun4.utils.ChestMenuUtils;
import io.github.thebusybiscuit.slimefun4.utils.HeadTexture;
import io.papermc.lib.PaperLib;

import me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu;
import org.apache.commons.lang.Validate;

import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.OfflinePlayer;
Expand Down Expand Up @@ -164,7 +162,7 @@ private static void removePlayer(Player owner, OfflinePlayer p, Block android, L
if (replacedText.isEmpty()) {
return new ArrayList<>();
} else {
return Arrays.asList(replacedText.split(", "));
return new ArrayList<>(Arrays.asList(replacedText.split(", ")));
}
}

Expand Down

0 comments on commit b6fa180

Please sign in to comment.