mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
creating clone of list to not add to the original one
This commit is contained in:
1 parent
1b4c0b04a2
commit
644948e962
1 file changed
+3
-1
@@ -4,6 +4,8 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import me.neznamy.tab.api.TabPlayer;
|
||||
import me.neznamy.tab.premium.Premium;
|
||||
import me.neznamy.tab.premium.SortingType;
|
||||
@@ -121,7 +123,7 @@ public class DebugCommand extends SubCommand {
|
||||
showProperty(sender, analyzed, "customtagname", disabledNametags);
|
||||
List<Object> lines;
|
||||
if (Premium.is()) {
|
||||
lines = (List<Object>) Premium.premiumconfig.getObject("unlimited-nametag-mode-dynamic-lines");
|
||||
lines = Lists.newArrayList((List<Object>) Premium.premiumconfig.getObject("unlimited-nametag-mode-dynamic-lines"));
|
||||
lines.addAll(Premium.premiumconfig.getConfigurationSection("unlimited-nametag-mode-static-lines").keySet());
|
||||
} else {
|
||||
lines = Arrays.asList("belowname", "nametag", "abovename");
|
||||
|
||||
Reference in new issue
Block a user