24
24
import com .railwayteam .railways .content .semaphore .SemaphoreBlock ;
25
25
import com .railwayteam .railways .content .smokestack .block .AbstractSmokeStackBlock ;
26
26
import com .railwayteam .railways .content .smokestack .block .DieselSmokeStackBlock ;
27
- import com .railwayteam .railways .content .smokestack .block .OilburnerSmokeStackBlock ;
28
27
import com .railwayteam .railways .content .smokestack .block .SmokeStackBlock ;
29
28
import com .railwayteam .railways .content .switches .TrackSwitchBlock ;
30
29
import com .railwayteam .railways .registry .CRBlocks ;
@@ -320,7 +319,7 @@ public static <B extends LinkPinBlock, P> NonNullUnaryOperator<BlockBuilder<B, P
320
319
public static <B extends HeadstockBlock , P > NonNullUnaryOperator <BlockBuilder <B , P >> headstock () {
321
320
return b -> b .blockstate ((c , p ) -> p .getVariantBuilder (c .getEntry ())
322
321
.forAllStatesExcept (state -> ConfiguredModel .builder ()
323
- .modelFile (p .models ().getExistingFile (state .getValue (HeadstockBlock .STYLE ).getModel (false )))
322
+ .modelFile (p .models ().getExistingFile (state .getValue (HeadstockBlock .STYLE ).getModel (false , state . getValue ( HeadstockBlock . UPSIDE_DOWN ) )))
324
323
.rotationY (((int ) state .getValue (HeadstockBlock .FACING ).toYRot () + 180 ) % 360 )
325
324
.build (), HeadstockBlock .WATERLOGGED
326
325
)
@@ -336,7 +335,7 @@ public static <B extends CopycatHeadstockBlock, P> NonNullUnaryOperator<BlockBui
336
335
return b -> b
337
336
.blockstate ((c , p ) -> p .getVariantBuilder (c .getEntry ())
338
337
.forAllStatesExcept (state -> ConfiguredModel .builder ()
339
- .modelFile (p .models ().getExistingFile (state .getValue (HeadstockBlock .STYLE ).getModel (true )))
338
+ .modelFile (p .models ().getExistingFile (state .getValue (CopycatHeadstockBlock .STYLE ).getModel (true , state . getValue ( CopycatHeadstockBlock . UPSIDE_DOWN ) )))
340
339
.rotationY (((int ) state .getValue (HeadstockBlock .FACING ).toYRot () + 180 ) % 360 )
341
340
.build (), HeadstockBlock .WATERLOGGED
342
341
)
0 commit comments