mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
A good bit of work
- Fixed infuse sprites - Fixed liquid sprites - Fixed Plastic Fence block states - got Plastic Fence to render in block form
This commit is contained in:
1 parent
115443f5f9
commit
13893bd705
24 files changed
+474
-88
No files matched your search
@@ -385,7 +385,6 @@ public class BlockStateMachine extends BlockStateFacing
|
||||
{
|
||||
return activable;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class MachineBlockPredicate implements Predicate<MachineType>
|
||||
@@ -412,27 +411,30 @@ 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());
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
return new ModelResourceLocation("builtin/missing", "missing");
|
||||
}
|
||||
}
|
||||
@@ -443,6 +445,7 @@ public class BlockStateMachine extends BlockStateFacing
|
||||
}
|
||||
|
||||
ResourceLocation baseLocation = new ResourceLocation("mekanism", type.getName());
|
||||
|
||||
return new ModelResourceLocation(baseLocation, builder.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user