1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-27 16:02:17 +00:00

Fix computers and turtles breaking without particles.

This is a very jarring bug in creative mode.
This commit is contained in:
Toad-Dev 2021-12-07 18:42:59 -08:00
parent f5c8afa566
commit dc20050547

View File

@ -140,6 +140,8 @@ public abstract class BlockComputerBase<T extends TileComputerBase> extends Bloc
@Override
public void playerWillDestroy( @Nonnull Level world, @Nonnull BlockPos pos, @Nonnull BlockState state, @Nonnull Player player )
{
super.playerWillDestroy( world, pos, state, player );
if( !(world instanceof ServerLevel serverWorld) ) return;
// We drop the item here instead of doing it in the harvest method, as we should