mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 06:07:27 +00:00
Better Collection Handling
This commit is contained in:
1 parent
db55dee048
commit
db899fe479
1 file changed
+3
-6
@@ -9,10 +9,7 @@ import noppes.npcs.client.gui.util.GuiNpcLabel;
|
||||
import noppes.npcs.client.gui.util.SubGuiInterface;
|
||||
import noppes.npcs.controllers.data.SpawnData;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
public class SubGuiNpcBiomes extends SubGuiInterface {
|
||||
private SpawnData data;
|
||||
@@ -50,7 +47,7 @@ public class SubGuiNpcBiomes extends SubGuiInterface {
|
||||
List<String> biomes = new ArrayList<String>();
|
||||
Set<BiomeGenBase> allBiomes = new HashSet<BiomeGenBase>();
|
||||
for (BiomeDictionary.Type type : BiomeDictionary.Type.values()) {
|
||||
allBiomes.addAll(BiomeDictionary.getBiomesForType(type));
|
||||
Collections.addAll(allBiomes, BiomeDictionary.getBiomesForType(type));
|
||||
}
|
||||
for (BiomeGenBase base : BiomeGenBase.getBiomeGenArray()) {
|
||||
if (base != null)
|
||||
@@ -95,7 +92,7 @@ public class SubGuiNpcBiomes extends SubGuiInterface {
|
||||
data.biomes.clear();
|
||||
Set<BiomeGenBase> allBiomes = new HashSet<BiomeGenBase>();
|
||||
for (BiomeDictionary.Type type : BiomeDictionary.Type.values()) {
|
||||
allBiomes.addAll(BiomeDictionary.getBiomesForType(type));
|
||||
Collections.addAll(allBiomes, BiomeDictionary.getBiomesForType(type));
|
||||
}
|
||||
for (BiomeGenBase base : BiomeGenBase.getBiomeGenArray()) {
|
||||
if (base != null)
|
||||
|
||||
Reference in new issue
Block a user