mirror of
https://github.com/GTNewHorizons/bdlib.git
synced 2026-11-12 00:07:31 +00:00
Fix NPE in getBiomeByName (bdew/gendustry#22)
This commit is contained in:
1 parent
2a995f1c05
commit
49a2f0baec
1 file changed
+1
-1
@@ -55,7 +55,7 @@ object Misc {
|
||||
|
||||
def filterType[T](from: Iterable[_], cls: Class[T]) = from.filter(cls.isInstance).asInstanceOf[Iterable[T]]
|
||||
|
||||
def getBiomeByName(name: String) = BiomeGenBase.biomeList.find(_.biomeName == name).getOrElse(null)
|
||||
def getBiomeByName(name: String) = BiomeGenBase.biomeList.find(x => x != null && x.biomeName == name).getOrElse(null)
|
||||
|
||||
def haveModVersion(spec: String): Boolean = {
|
||||
val req = VersionParser.parseVersionReference(spec)
|
||||
|
||||
Reference in new issue
Block a user