aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers
diff options
context:
space:
mode:
authorantifluxfield <lyj_299792458@163.com>2017-05-27 14:48:39 +0800
committerGitHub <noreply@github.com>2017-05-27 14:48:39 +0800
commitc42c2facb1379c30e5642738bf1dd42cd9f16282 (patch)
tree0e82440ca8aea331d0f3a3da30ffa742e4e33fcb /src/main/java/gregtech/common/covers
parentaa4839ebf64d0b21134ef1cfb78d8d4af232b4aa (diff)
downloadGT5-Unofficial-c42c2facb1379c30e5642738bf1dd42cd9f16282.tar.gz
GT5-Unofficial-c42c2facb1379c30e5642738bf1dd42cd9f16282.tar.bz2
GT5-Unofficial-c42c2facb1379c30e5642738bf1dd42cd9f16282.zip
Update GT_Cover_PlayerDetector.java
Diffstat (limited to 'src/main/java/gregtech/common/covers')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java6
1 files 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 c9df9f1423..d76a05117b 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;
}