Skip to content

Commit

Permalink
Remove timings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeregorix committed Jan 30, 2022
1 parent 4ad10e8 commit 3c2849f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ configurations {

dependencies {
implementation 'org.spongepowered:sponge:1.16.5-8.0.0-SNAPSHOT:dev'
implementation 'org.spongepowered:timings:1.0-SNAPSHOT'
implementation 'org.spongepowered:mixin:0.8.4'
implementation 'org.ow2.asm:asm-util:9.2'

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.piston.PistonStructureResolver;
import net.smoofyuniverse.superpiston.SuperPiston;
import net.smoofyuniverse.superpiston.SuperPistonTimings;
import net.smoofyuniverse.superpiston.api.structure.PistonStructure;
import net.smoofyuniverse.superpiston.api.structure.calculator.DefaultStructureCalculator;
import net.smoofyuniverse.superpiston.api.structure.calculator.PistonStructureCalculator;
Expand Down Expand Up @@ -79,11 +78,8 @@ public abstract class PistonStructureResolverMixin implements InternalStructureR

@Inject(method = "resolve", at = @At("HEAD"), cancellable = true)
public void onResolve(CallbackInfoReturnable<Boolean> cir) {
if (this.resolveCustom) {
SuperPistonTimings.CALCULATION.startTiming();
if (this.resolveCustom)
cir.setReturnValue(resolveCustom());
SuperPistonTimings.CALCULATION.stopTiming();
}
}

@Inject(method = "<init>", at = @At("RETURN"))
Expand Down

0 comments on commit 3c2849f

Please sign in to comment.