Add chain-coupled minecart trains, closed loops and slime buffers
This commit is contained in:
@@ -59,7 +59,7 @@ public final class RailSpeed {
|
||||
var check=pos.offset(dx*i,0,dz*i);
|
||||
if(!level.hasChunkAt(check)) return .4;
|
||||
BlockState state=level.getBlockState(check);
|
||||
if(!(state.getBlock() instanceof BaseRailBlock rail)) return .4;
|
||||
if(!(state.getBlock() instanceof BaseRailBlock rail)) return state.is(Blocks.SLIME_BLOCK)?limit:.4;
|
||||
RailShape shape=rail.getRailDirection(state,level,check,cart);
|
||||
if(shape!=RailShape.NORTH_SOUTH && shape!=RailShape.EAST_WEST) return .4;
|
||||
if (i>0 && (state.is(Blocks.DETECTOR_RAIL) || state.is(Blocks.ACTIVATOR_RAIL)
|
||||
|
||||
Reference in New Issue
Block a user