Removed fast killaura

This commit is contained in:
Elias Fleckenstein 2020-07-18 10:37:54 +02:00
parent 408e39a1d2
commit f22339ed89
3 changed files with 3 additions and 14 deletions

View File

@ -2148,7 +2148,7 @@ priv_bypass (Make the Client think it has all privs) bool true
fastdig (Fast Dig) bool false
prevent_natural_damage (Prevent Natural Damage e.g Fall Damage) bool true
prevent_natural_damage (Prevent Fall Damage) bool true
freecam (Move around freely) bool false
@ -2158,7 +2158,6 @@ no_hurt_cam (No Hurt Cam) bool false
increase_tool_range (Increase Tool Range) bool true
killaura_fast (Enable fast Killaura) bool true
hud_flags_bypass (Enable HUD Flags Bypass) bool true
antiknockback (Anti Knockback) bool false

View File

@ -2363,10 +2363,6 @@ PointedThing Game::updatePointedThing(
const NodeDefManager *nodedef = map.getNodeDefManager();
if (g_settings->getBool("killaura")) {
LocalPlayer *player = env.getLocalPlayer();
v3f player_pos = player->getPosition();
ItemStack selected_item, hand_item;
const ItemStack &tool_item = player->getWieldedItem(&selected_item, &hand_item);
std::vector<DistanceSortedActiveObject> allObjects;
env.getActiveObjects(shootline.start, shootline.getLength() + 10.0f, allObjects);
const v3f line_vector = shootline.getVector();
@ -2382,12 +2378,7 @@ PointedThing Game::updatePointedThing(
aabb3f offsetted_box(selection_box.MinEdge + pos, selection_box.MaxEdge + pos);
boxLineCollision(offsetted_box, shootline.start, line_vector, &intersection, &normal);
PointedThing pointed(id, intersection, normal, (intersection - shootline.start).getLengthSQ());
if (g_settings->getBool("killaura_fast"))
client->interact(INTERACT_START_DIGGING, pointed);
else {
runData.selected_object = obj;
handlePointingAtObject(pointed, tool_item, player_pos, false);
}
client->interact(INTERACT_START_DIGGING, pointed);
break;
}
}

View File

@ -74,7 +74,6 @@ void set_default_settings(Settings *settings)
settings->setDefault("killaura", "falses");
settings->setDefault("no_hurt_cam", "false");
settings->setDefault("increase_tool_range", "true");
settings->setDefault("killaura_fast", "true");
settings->setDefault("hud_flags_bypass", "true");
settings->setDefault("antiknockback", "false");