@@ -70,11 +70,6 @@ public void fakeUpdateBlockMining(Minecraft minecraft, BlockPos blockPos) {
7070 target = blockPos ;
7171 }
7272
73- if (isFakeMinedBlock (blockPos )) {
74- /* don't fake mine if the block is currently invisible */
75- return ;
76- }
77-
7873 if (isBlockInRestorationDelay (blockPos )) {
7974 /* prevent mining if block was recently restored and is still in delay period */
8075 return ;
@@ -86,6 +81,10 @@ public void fakeUpdateBlockMining(Minecraft minecraft, BlockPos blockPos) {
8681 }
8782
8883 if (block .getMiningSpeed (minecraft .player , minecraft .player .world , blockPos ) >= 1.0F ) {
84+ if (isFakeMinedBlock (blockPos )) {
85+ /* don't fake mine if the block is currently invisible */
86+ return ;
87+ }
8988 /* instantly breakable blocks */
9089 finishMiningBlock (minecraft , block , blockPos , blockState );
9190 return ;
@@ -168,7 +167,7 @@ public void updatePendingRestorations() {
168167 fakeMinedBlocks .remove (blockPos );
169168 iterator .remove ();
170169 /* add the block to restoration mining delay. this allows the block to appear for a split second before its mine-able */
171- restorationMiningDelays .put (blockPos , currentTime + getPing ( minecraft ) + 1 );
170+ restorationMiningDelays .put (blockPos , currentTime + 1 );
172171 for (Direction direction : Direction .values ()) {
173172 /* updates surrounding blocks */
174173 minecraft .world .notifyBlockChanged (blockPos .offset (direction ));
0 commit comments