diff --git a/src/main/java/com/lovetropics/perms/protection/ProtectionPlayerTracker.java b/src/main/java/com/lovetropics/perms/protection/ProtectionPlayerTracker.java index 3a9cb07..c300b80 100644 --- a/src/main/java/com/lovetropics/perms/protection/ProtectionPlayerTracker.java +++ b/src/main/java/com/lovetropics/perms/protection/ProtectionPlayerTracker.java @@ -8,7 +8,6 @@ import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap; import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet; import it.unimi.dsi.fastutil.objects.ReferenceArraySet; -import it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet; import net.minecraft.server.level.ServerPlayer; import net.minecraftforge.event.TickEvent; import net.minecraftforge.event.entity.player.PlayerEvent; @@ -16,7 +15,8 @@ import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; -import java.util.*; +import java.util.Set; +import java.util.UUID; @Mod.EventBusSubscriber(modid = LTPermissions.ID) public final class ProtectionPlayerTracker { @@ -97,7 +97,6 @@ private void updateTracker(final ServerPlayer player, final Tracker tracker) { try { lastBehaviors.addAll(tracker.behaviors); tracker.behaviors.clear(); - tracker.inside.clear(); final AuthorityMap authorities = protection.selectWithBehavior(player.level().dimension()); if (authorities != null) { @@ -105,7 +104,6 @@ private void updateTracker(final ServerPlayer player, final Tracker tracker) { for (final Authority authority : authorities) { if (authority.eventFilter().accepts(source)) { tracker.behaviors.add(authority.behavior().getBehavior()); - tracker.inside.add(authority); } } } @@ -136,7 +134,6 @@ private void clearTracker(ServerPlayer player, UUID uuid) { } private static final class Tracker { - private final Set inside = new ReferenceOpenHashSet<>(); private final Set behaviors = new ReferenceArraySet<>(); private long lastBlockPos = -1; }