Fixes a crash bug when trying to break a block because the damage texture couldn't be generated. (#69)
Fixes another crash bug where during UVLModelLoader loading, it tried to apply tint but couldn't, because no block was available. Also fixes a bug where the quad tint wasn't propagated and tinting didn't work.
This commit is contained in:
@@ -315,9 +315,15 @@ public enum UVLModelLoader implements ICustomModelLoader
|
||||
lightmap[1] = brightness.getLeft();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setQuadTint( int tint )
|
||||
{
|
||||
// Tint requires a block state which we don't have at this point
|
||||
}
|
||||
};
|
||||
trans.setParent( builder );
|
||||
quad.pipe( trans );
|
||||
builder.setQuadTint( quad.getTintIndex() );
|
||||
builder.setQuadOrientation( quad.getFace() );
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user