Fix NPEs when modders stupidly register null texture names.
This commit is contained in:
parent
9bb558078b
commit
dc05f210f5
1 changed files with 9 additions and 1 deletions
|
@ -89,7 +89,15 @@
|
|||
this.atlasTexture.createTexture();
|
||||
}
|
||||
|
||||
@@ -219,4 +244,37 @@
|
||||
@@ -202,6 +227,7 @@
|
||||
if (par1Str == null)
|
||||
{
|
||||
(new RuntimeException("Don\'t register null!")).printStackTrace();
|
||||
+ par1Str = "null"; //Don't allow things to actually register null..
|
||||
}
|
||||
|
||||
TextureStitched texturestitched = (TextureStitched)this.textureStichedMap.get(par1Str);
|
||||
@@ -219,4 +245,37 @@
|
||||
{
|
||||
return this.missingTextureStiched;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue