mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
More work on rendering
Get some things actually looking right!
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user