Update GT_Cover_PlayerDetector.java

This commit is contained in:
antifluxfield 2017-05-27 14:48:39 +08:00 committed by GitHub
parent aa4839ebf6
commit c42c2facb1

View file

@ -34,7 +34,7 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior {
playerDetected = true; playerDetected = true;
break; break;
} }
if (!tEntity.getDisplayName().equalsIgnoreCase(placer)) { if (tEntity.getDisplayName().equalsIgnoreCase(placer)) {
if (aCoverVariable == 1) { if (aCoverVariable == 1) {
playerDetected = true; playerDetected = true;
break; break;
@ -57,8 +57,8 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior {
if(aCoverVariable <0){aCoverVariable = 2;} if(aCoverVariable <0){aCoverVariable = 2;}
switch(aCoverVariable) { switch(aCoverVariable) {
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); break; 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 1: GT_Utility.sendChatToPlayer(aPlayer, "Emit if other player is close"); break;
case 2: 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; return aCoverVariable;
} }