mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +01:00
Merge pull request #490 from wchen1990/mc1.15/dev
Fix Bell contraptions and Schematic usage
This commit is contained in:
commit
47f5225129
2 changed files with 5 additions and 4 deletions
|
@ -25,7 +25,8 @@ public class BellMovementBehaviour extends MovementBehaviour {
|
|||
|
||||
@Override
|
||||
public void stopMoving(MovementContext context) {
|
||||
context.world.playSound(null, new BlockPos(context.position), SoundEvents.BLOCK_BELL_USE, SoundCategory.BLOCKS,
|
||||
2.0F, 1.0F);
|
||||
if (context.position != null)
|
||||
context.world.playSound(null, new BlockPos(context.position), SoundEvents.BLOCK_BELL_USE, SoundCategory.BLOCKS,
|
||||
2.0F, 1.0F);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -221,14 +221,14 @@ public class SchematicHandler {
|
|||
}
|
||||
|
||||
public boolean mouseScrolled(double delta) {
|
||||
if (!active || Minecraft.getInstance().player.isSneaking())
|
||||
if (!active)
|
||||
return false;
|
||||
|
||||
if (selectionScreen.focused) {
|
||||
selectionScreen.cycle((int) delta);
|
||||
return true;
|
||||
}
|
||||
if (AllKeys.ACTIVATE_TOOL.isPressed())
|
||||
if (!AllKeys.ctrlDown())
|
||||
return currentTool.getTool()
|
||||
.handleMouseWheel(delta);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue