Changed some default settings

This commit is contained in:
Evenprime 2011-10-20 16:45:41 +02:00
parent 247e5d082b
commit e9aceb4fef

View File

@ -92,17 +92,19 @@ public class DefaultConfiguration extends Configuration {
setValue(BLOCKBREAK_REACH_LIMIT, 485);
ActionList reachActionList = new ActionList();
reachActionList.setActions(0, action.getActions("reachLog blockbreakCancel".split(" ")));
reachActionList.setActions(0, action.getActions("blockbreakCancel".split(" ")));
reachActionList.setActions(5, action.getActions("reachLog blockbreakCancel".split(" ")));
setValue(BLOCKBREAK_REACH_ACTIONS, reachActionList);
setValue(BLOCKBREAK_DIRECTION_CHECK, true);
setValue(BLOCKBREAK_DIRECTION_CHECKINSTABREAKBLOCKS, false);
setValue(BLOCKBREAK_DIRECTION_CHECKINSTABREAKBLOCKS, true);
setValue(BLOCKBREAK_DIRECTION_PRECISION, 50);
setValue(BLOCKBREAK_DIRECTION_PENALTYTIME, 300);
ActionList directionActionList = new ActionList();
directionActionList.setActions(0, action.getActions("directionLog blockbreakCancel".split(" ")));
directionActionList.setActions(0, action.getActions("blockbreakCancel".split(" ")));
directionActionList.setActions(10, action.getActions("directionLog blockbreakCancel".split(" ")));
setValue(BLOCKBREAK_DIRECTION_ACTIONS, directionActionList);
}
@ -114,13 +116,15 @@ public class DefaultConfiguration extends Configuration {
setValue(BLOCKPLACE_REACH_LIMIT, 485);
ActionList reachActionList = new ActionList();
reachActionList.setActions(0, action.getActions("reachLog blockplaceCancel".split(" ")));
reachActionList.setActions(0, action.getActions("blockplaceCancel".split(" ")));
reachActionList.setActions(5, action.getActions("reachLog blockplaceCancel".split(" ")));
setValue(BLOCKPLACE_REACH_ACTIONS, reachActionList);
setValue(BLOCKPLACE_ONLIQUID_CHECK, true);
ActionList onliquidActionList = new ActionList();
onliquidActionList.setActions(0, action.getActions("onliquidLog blockplaceCancel".split(" ")));
onliquidActionList.setActions(0, action.getActions("blockplaceCancel".split(" ")));
onliquidActionList.setActions(3, action.getActions("onliquidLog blockplaceCancel".split(" ")));
setValue(BLOCKPLACE_ONLIQUID_ACTIONS, onliquidActionList);
}
@ -170,10 +174,8 @@ public class DefaultConfiguration extends Configuration {
w = new BufferedWriter(new FileWriter(file));
w(w, "# This file contains the definitions of the default actions of NoCheat.");
w(w, "# DO NOT EDIT THIS FILE DIRECTLY. If you want to change any of these, copy");
w(w, "# them to your \"actions.txt\" file and modify them there. If an action with");
w(w, "# the same name exists here and in your file, yours will be used.");
w(w, "# This file contains the definitions of your personal actions for NoCheat.");
w(w, "# Look at the file default_actions.txt for inspiration on how it works.");
w(w, "");
w.flush();
w.close();