Avoid exception on bad modellist from DynmapBlockScan
This commit is contained in:
parent
ee78384cdc
commit
a81249539b
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,
|
||||
new Vector3D(bl.xrotorig / 16, bl.yrotorig / 16, bl.zrotorig / 16),
|
||||
patch.textureindex);
|
||||
if (patch == null) continue;
|
||||
}
|
||||
// If model rotation, apply too
|
||||
if ((bl.modrotx != 0) || (bl.modroty != 0) || (bl.modrotz != 0)) {
|
||||
patch = pdf.getPatch(patch, bl.modrotx, bl.modroty, bl.modrotz, patch.textureindex);
|
||||
if (patch == null) continue;
|
||||
}
|
||||
pd.add(patch);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue