mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 19:59:49 +00:00
Fix some null warnings
This commit is contained in:
1 parent
c6783e573c
commit
3178aa890d
22 files changed
+114
-95
No files matched your search
@@ -31,7 +31,10 @@ public class ControlBiomes extends Control implements ITooltip {
|
||||
final int y = (int) (this.getRelativeMousePosition().y() / 16.0f);
|
||||
final int i = x + y * 8;
|
||||
if (i < this.tolerated.size()) {
|
||||
list.add(Biome.getBiome(this.tolerated.get(i)).getBiomeName());
|
||||
Biome biome = Biome.getBiome(this.tolerated.get(i));
|
||||
if (biome != null) {
|
||||
list.add(biome.getBiomeName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user