Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 27, 2024
1 parent 79e86dd commit f51bb20
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ public class ElytraHelper implements AnarchyExploitFixesModule {
public static final double SPEED_TOLERANCE = 0.02;

protected final AnarchyExploitFixes plugin;
protected final boolean calculate3D;

private GlideListener glideListener;
private ChunkListener chunkListener;
private IntervalCheck intervalCheck;
private final boolean calculate3D;

public ElytraHelper() {
instance = this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class IntervalCheck extends ElytraHelper {
public final Cache<UUID, Double> PLAYER_SPEEDS;
public final Cache<UUID, Location> LAST_GLIDE_POS;
private final int checkIntervalTicks;
public final boolean isEnabled, calculate3D;
public final boolean isEnabled;

public IntervalCheck() {
Config config = AnarchyExploitFixes.getConfiguration();
Expand All @@ -30,7 +30,6 @@ public IntervalCheck() {
final Duration cacheTime = Duration.ofMillis(Math.max(1000, (tickInterval * 50L) + 100L));
this.PLAYER_SPEEDS = Caffeine.newBuilder().expireAfterWrite(cacheTime).build();
this.LAST_GLIDE_POS = Caffeine.newBuilder().expireAfterWrite(cacheTime).build();
this.calculate3D = AnarchyExploitFixes.getConfiguration().elytra_calculate_3D;
}

public void startIfEnabled() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ public class ElytraHelper implements AnarchyExploitFixesModule {
public static final double SPEED_TOLERANCE = 0.02;

protected final AnarchyExploitFixes plugin;
protected final boolean calculate3D;

private GlideListener glideListener;
private ChunkListener chunkListener;
private IntervalCheck intervalCheck;
private final boolean calculate3D;

public ElytraHelper() {
instance = this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public IntervalCheck() {
final Duration cacheTime = Duration.ofMillis(Math.max(1000, (tickInterval * 50L) + 100L));
this.PLAYER_SPEEDS = Caffeine.newBuilder().expireAfterWrite(cacheTime).build();
this.LAST_GLIDE_POS = Caffeine.newBuilder().expireAfterWrite(cacheTime).build();

}

public void startIfEnabled() {
Expand Down

0 comments on commit f51bb20

Please sign in to comment.