From 8e9683b33f690aee3d2b6d2a76c8f9baebae6e70 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 23 Nov 2019 14:10:17 +0000 Subject: [PATCH] Fix compile --- .../lucko/luckperms/common/api/implementation/ApiTrack.java | 5 ----- .../luckperms/sponge/service/proxy/api7/SubjectProxy.java | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/api/implementation/ApiTrack.java b/common/src/main/java/me/lucko/luckperms/common/api/implementation/ApiTrack.java index 1145a5402..ad74d7c24 100644 --- a/common/src/main/java/me/lucko/luckperms/common/api/implementation/ApiTrack.java +++ b/common/src/main/java/me/lucko/luckperms/common/api/implementation/ApiTrack.java @@ -69,11 +69,6 @@ public class ApiTrack implements net.luckperms.api.track.Track { return this.handle.getGroups(); } - @Override - public int getSize() { - return this.handle.getSize(); - } - @Override public String getNext(@NonNull Group current) { Objects.requireNonNull(current, "current"); diff --git a/sponge/sponge-service-api7/src/main/java/me/lucko/luckperms/sponge/service/proxy/api7/SubjectProxy.java b/sponge/sponge-service-api7/src/main/java/me/lucko/luckperms/sponge/service/proxy/api7/SubjectProxy.java index 669818d15..c190d0e7f 100644 --- a/sponge/sponge-service-api7/src/main/java/me/lucko/luckperms/sponge/service/proxy/api7/SubjectProxy.java +++ b/sponge/sponge-service-api7/src/main/java/me/lucko/luckperms/sponge/service/proxy/api7/SubjectProxy.java @@ -66,7 +66,7 @@ public final class SubjectProxy implements Subject, ProxiedSubject, ProxiedServi } // lazy init - private QueryOptionsSupplier getContextsCache() { + private QueryOptionsSupplier queryOptionsCache() { if (this.queryOptionsSupplier == null) { this.queryOptionsSupplier = this.service.getContextManager().getCacheFor(this); } @@ -160,12 +160,12 @@ public final class SubjectProxy implements Subject, ProxiedSubject, ProxiedServi @Override public @NonNull Set getActiveContexts() { - return CompatibilityUtil.convertContexts(getContextsCache().getContextSet()); + return CompatibilityUtil.convertContexts(queryOptionsCache().getContextSet()); } @Override public ImmutableContextSet getActiveContextSet() { - return getContextsCache().getContextSet(); + return queryOptionsCache().getContextSet(); } @Override