Merge pull request #1067 from antifluxfield/unstable

Wrong behavior of Player Detector
This commit is contained in:
Blood-Asp 2017-05-31 18:55:35 +02:00 committed by GitHub
commit b170cd5a5c

View file

@ -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;
}