mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 06:24:29 +01:00
Picking up Controller Rails
- Controller Rails can now be picked up using a Wrench
This commit is contained in:
parent
b2ff3a465f
commit
1b5f9e7944
@ -222,16 +222,9 @@ public class ControllerRailBlock extends AbstractRailBlock implements IWrenchabl
|
||||
BlockState testState = rotate(state, testRotation);
|
||||
if (isStableWith(testState, world, pos)) {
|
||||
placeAndNotify(testState, pos, world);
|
||||
break;
|
||||
return ActionResultType.SUCCESS;
|
||||
}
|
||||
}
|
||||
return ActionResultType.SUCCESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResultType onSneakWrenched(BlockState state, ItemUseContext context) {
|
||||
World world = context.getWorld();
|
||||
BlockPos pos = context.getPos();
|
||||
BlockState testState = state.with(BACKWARDS, !state.get(BACKWARDS));
|
||||
if (isStableWith(testState, world, pos))
|
||||
placeAndNotify(testState, pos, world);
|
||||
|
Loading…
Reference in New Issue
Block a user