mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:02:48 +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
1 changed files with 1 additions and 8 deletions
|
@ -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 a new issue