From c88b6f3b9da469eb660acf3da26c83a79f8efbc0 Mon Sep 17 00:00:00 2001 From: Sekwah Date: Fri, 13 Jul 2018 04:06:01 +0100 Subject: [PATCH] Added cache and removed imports --- .../core/repository/PortalTempDataRepository.java | 1 - .../core/repository/PortalTempDataRepositoryImpl.java | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepository.java b/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepository.java index 893a19a5..7c7bf967 100644 --- a/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepository.java +++ b/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepository.java @@ -2,7 +2,6 @@ package com.sekwah.advancedportals.core.repository; import com.sekwah.advancedportals.core.entities.PlayerLocation; import com.sekwah.advancedportals.core.entities.PortalLocation; -import com.sekwah.advancedportals.core.enums.EnumHandSelection; import com.sekwah.advancedportals.coreconnector.container.PlayerContainer; import java.util.UUID; diff --git a/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepositoryImpl.java b/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepositoryImpl.java index 5d1a016f..a8280b9c 100644 --- a/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepositoryImpl.java +++ b/src/main/java/com/sekwah/advancedportals/core/repository/PortalTempDataRepositoryImpl.java @@ -7,7 +7,6 @@ import com.google.common.collect.Table; import com.google.inject.Singleton; import com.sekwah.advancedportals.core.entities.PlayerLocation; import com.sekwah.advancedportals.core.entities.PortalLocation; -import com.sekwah.advancedportals.core.enums.EnumHandSelection; import com.sekwah.advancedportals.coreconnector.container.PlayerContainer; import java.util.UUID; @@ -44,8 +43,8 @@ public class PortalTempDataRepositoryImpl implements PortalTempDataRepository { @Override public void removeAllSelectedHand(UUID uuid) { - selectedPositions.remove(uuid, EnumHandSelection.LEFTHAND); - selectedPositions.remove(uuid, EnumHandSelection.RIGHTHAND); + selectedPositions.remove(uuid, true); + selectedPositions.remove(uuid, false); } @Override