Copy over parent's modelSet value in variants as well.

This commit is contained in:
Lex Manos committed 2015-06-09 17:17:23 -07:00
1 parent db42d1f532
commit db7d82a889
1 file changed
+5 -1
@@ -284,7 +284,11 @@ public class ForgeBlockStateV1 extends Marker
*/
ForgeBlockStateV1.Variant sync(ForgeBlockStateV1.Variant parent)
{
if (!this.modelSet) this.model = parent.model;
if (!this.modelSet)
{
this.model = parent.model;
this.modelSet = parent.modelSet;
}
if (!this.rotation.isPresent()) this.rotation = parent.rotation;
if (!this.uvLock.isPresent()) this.uvLock = parent.uvLock;
if (!this.weight.isPresent()) this.weight = parent.weight;