mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-02 10:37:54 +00:00
Fix computers and turtles breaking without particles.
This is a very jarring bug in creative mode.
This commit is contained in:
@@ -140,6 +140,8 @@ public abstract class BlockComputerBase<T extends TileComputerBase> extends Bloc
|
|||||||
@Override
|
@Override
|
||||||
public void playerWillDestroy( @Nonnull Level world, @Nonnull BlockPos pos, @Nonnull BlockState state, @Nonnull Player player )
|
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;
|
if( !(world instanceof ServerLevel serverWorld) ) return;
|
||||||
|
|
||||||
// We drop the item here instead of doing it in the harvest method, as we should
|
// We drop the item here instead of doing it in the harvest method, as we should
|
||||||
|
Reference in New Issue
Block a user