From aa4839ebf64d0b21134ef1cfb78d8d4af232b4aa Mon Sep 17 00:00:00 2001 From: antifluxfield Date: Sat, 27 May 2017 14:46:03 +0800 Subject: [PATCH 1/2] Update GT_Cover_PlayerDetector.java --- .../java/gregtech/common/covers/GT_Cover_PlayerDetector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java b/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java index 9c61f4fe..c9df9f14 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java @@ -34,7 +34,7 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { playerDetected = true; break; } - if (tEntity.getDisplayName().equalsIgnoreCase(placer)) { + if (!tEntity.getDisplayName().equalsIgnoreCase(placer)) { if (aCoverVariable == 1) { playerDetected = true; break; From c42c2facb1379c30e5642738bf1dd42cd9f16282 Mon Sep 17 00:00:00 2001 From: antifluxfield Date: Sat, 27 May 2017 14:48:39 +0800 Subject: [PATCH 2/2] Update GT_Cover_PlayerDetector.java --- .../gregtech/common/covers/GT_Cover_PlayerDetector.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java b/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java index c9df9f14..d76a0511 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java @@ -34,7 +34,7 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { playerDetected = true; break; } - if (!tEntity.getDisplayName().equalsIgnoreCase(placer)) { + if (tEntity.getDisplayName().equalsIgnoreCase(placer)) { if (aCoverVariable == 1) { playerDetected = true; break; @@ -57,8 +57,8 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior { if(aCoverVariable <0){aCoverVariable = 2;} switch(aCoverVariable) { case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); break; - case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); break; - case 2: GT_Utility.sendChatToPlayer(aPlayer, "Emit if other player is close"); break; + case 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if other player is close"); break; + case 2: GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); break; } return aCoverVariable; }