Browse Source

box limiter

lakebane-ai
FatBoy-DOTC 3 weeks ago
parent
commit
61088d0b59
  1. 3
      src/engine/gameManager/ConfigManager.java
  2. 2
      src/engine/objects/PlayerCharacter.java

3
src/engine/gameManager/ConfigManager.java

@ -98,7 +98,8 @@ public enum ConfigManager {
MB_MAGICBOT_FORTOFIX, MB_MAGICBOT_FORTOFIX,
MB_MAGICBOT_RECRUIT, MB_MAGICBOT_RECRUIT,
MB_MAGICBOT_MAGICBOX, MB_MAGICBOT_MAGICBOX,
MB_MAGICBOT_ADMINLOG; MB_MAGICBOT_ADMINLOG,
MB_WORLD_BOXLIMIT;
// Map to hold our config pulled in from the environment // Map to hold our config pulled in from the environment
// We also use the config to point to the current message pump // We also use the config to point to the current message pump

2
src/engine/objects/PlayerCharacter.java

@ -5151,7 +5151,7 @@ public class PlayerCharacter extends AbstractCharacter {
} }
public static boolean checkIfBoxed(PlayerCharacter player){ public static boolean checkIfBoxed(PlayerCharacter player){
if(ConfigManager.MB_WORLD_TESTMODE.getValue().equals("true")) { if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("true")) {
return false; return false;
} }
try { try {

Loading…
Cancel
Save