More work on rendering

Get some things actually looking right!
This commit is contained in:
Ben Spiers committed 2016-01-29 17:10:21 +00:00
1 parent e7f6ca53ad
commit 671fa97313
49 files changed
+7736 -188

No files matched your search

@@ -402,11 +402,21 @@ public class BlockStateMachine extends BlockStateFacing
BlockMachine block = (BlockMachine)state.getBlock();
MachineType type = state.getValue(block.getProperty());
StringBuilder builder = new StringBuilder();
if(type.hasActiveTexture())
{
builder.append(activeProperty.getName());
builder.append("=");
builder.append(state.getValue(activeProperty));
}
if(type.hasRotations())
{
EnumFacing facing = state.getValue(facingProperty);
if(type.canRotateTo(facing))
{
if(builder.length() > 0)
{
builder.append(",");
}
builder.append(facingProperty.getName());
builder.append("=");
builder.append(facing.getName());
@@ -416,15 +426,6 @@ public class BlockStateMachine extends BlockStateFacing
return new ModelResourceLocation("builtin/missing", "missing");
}
}
if(type.hasActiveTexture())
{
String active = state.getValue(activeProperty) ? "active" : "inactive";
if(builder.length() > 0)
{
builder.append(",");
}
builder.append(active);
}
if(builder.length() == 0)
{