1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-29 00:32:18 +00:00

Fix block setting more and fix computer break noise and particles.

This commit is contained in:
Jacob Farley 2020-09-04 18:05:53 -05:00
parent 33e65e39e3
commit 50b7646178
2 changed files with 3 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public final class ComputerCraftRegistry {
ModTiles.COMPUTER_ADVANCED));
public static final BlockComputer COMPUTER_COMMAND = register("computer_command",
new BlockComputer(Block.Settings.of(Material.STONE)
new BlockComputer(FabricBlockSettings.copyOf(Blocks.STONE)
.strength(-1, 6000000.0F),
ComputerFamily.COMMAND,
ModTiles.COMPUTER_COMMAND));

View File

@ -161,6 +161,8 @@ public abstract class BlockComputerBase<T extends TileComputerBase> extends Bloc
state.onStacksDropped( serverWorld, pos, player.getMainHandStack() );
}
// Call super as it is what provides sound and block break particles. Does not do anything else.
super.onBreak(world, pos, state, player);
}
@Override