Avoid exception on bad modellist from DynmapBlockScan
This commit is contained in:
parent
d9d3024865
commit
f47a8373ff
1 changed files with 2 additions and 0 deletions
|
|
@ -1026,10 +1026,12 @@ public class HDBlockModels {
|
||||||
patch = pdf.getPatch(patch, -bl.xrot, -bl.yrot, -bl.zrot,
|
patch = pdf.getPatch(patch, -bl.xrot, -bl.yrot, -bl.zrot,
|
||||||
new Vector3D(bl.xrotorig / 16, bl.yrotorig / 16, bl.zrotorig / 16),
|
new Vector3D(bl.xrotorig / 16, bl.yrotorig / 16, bl.zrotorig / 16),
|
||||||
patch.textureindex);
|
patch.textureindex);
|
||||||
|
if (patch == null) continue;
|
||||||
}
|
}
|
||||||
// If model rotation, apply too
|
// If model rotation, apply too
|
||||||
if ((bl.modrotx != 0) || (bl.modroty != 0) || (bl.modrotz != 0)) {
|
if ((bl.modrotx != 0) || (bl.modroty != 0) || (bl.modrotz != 0)) {
|
||||||
patch = pdf.getPatch(patch, bl.modrotx, bl.modroty, bl.modrotz, patch.textureindex);
|
patch = pdf.getPatch(patch, bl.modrotx, bl.modroty, bl.modrotz, patch.textureindex);
|
||||||
|
if (patch == null) continue;
|
||||||
}
|
}
|
||||||
pd.add(patch);
|
pd.add(patch);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue