mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 23:09:05 +00:00
Fix biome collection bug and add spawn GUI tooltip
This commit is contained in:
1 parent
9850e4b751
commit
9e6f341d77
3 files changed
+3
-1
No files matched your search
@@ -66,6 +66,7 @@ public class GuiNpcNaturalSpawns extends GuiNPCInterface2 implements IGuiData, I
|
||||
addButton(new GuiNpcButton(4, guiLeft + 90, y - 5, 50, 20, "selectServer.edit"));
|
||||
|
||||
addSlider(new GuiNpcSlider(this, 5, guiLeft + 4, y += 17, 180, 20, (float) this.spawn.itemWeight / 100));
|
||||
addExtra(new GuiHoverText(1, "spawning.naturalInfo", guiLeft + 188, y + 5));
|
||||
|
||||
this.spawnEntryScroll.guiLeft = guiLeft + 4;
|
||||
this.spawnEntryScroll.guiTop = y + 40;
|
||||
|
||||
@@ -281,7 +281,7 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
List<String> biomes = new ArrayList<>();
|
||||
Set<BiomeGenBase> allBiomes = new HashSet<BiomeGenBase>();
|
||||
for (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