Skip to content

Commit

Permalink
seconds to tick conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-noey committed Aug 10, 2024
1 parent 719aec2 commit 11e4546
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Effect get() {
// Calculate ticks until replacement
long fadeTicks = this.fadeDelayTicks;
fadeTicks += (int) (Math.random() * maximumFadeDurationTicks);
fadeTicks += Settings.ExtraFadeTimePerBlock.getOrDefault(data.getMaterial(), 0);
fadeTicks += 20L * Settings.ExtraFadeTimePerBlock.getOrDefault(data.getMaterial(), 0);
// Deffer replacement until time delay elapses
accumulator = accumulator.andThen(new DeferredEffect(fadeTicks, () -> WorldManager.INSTANCE.submit(new FadeTask(data, replacementData, world, location))));
}
Expand Down

0 comments on commit 11e4546

Please sign in to comment.