mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-28 12:54:40 +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);
|
BlockState testState = rotate(state, testRotation);
|
||||||
if (isStableWith(testState, world, pos)) {
|
if (isStableWith(testState, world, pos)) {
|
||||||
placeAndNotify(testState, pos, world);
|
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));
|
BlockState testState = state.with(BACKWARDS, !state.get(BACKWARDS));
|
||||||
if (isStableWith(testState, world, pos))
|
if (isStableWith(testState, world, pos))
|
||||||
placeAndNotify(testState, pos, world);
|
placeAndNotify(testState, pos, world);
|
||||||
|
|
Loading…
Add table
Reference in a new issue