Auto disable smooth lighting when fullbright is active

This commit is contained in:
Elias Fleckenstein 2020-07-16 15:36:39 +02:00
parent 6796baec66
commit 305e0e0d31
6 changed files with 24 additions and 3 deletions

View File

@ -8,4 +8,4 @@ local function loop()
minetest.after(0.1, loop)
end
minetest.after(0.1, loop)
minetest.register_on_connect(loop)

View File

@ -1 +1,22 @@
minetest.override_item("air", {liquids_pointable = true})
local destroy_water = false
local function loop()
if destroy_water then
local pos = minetest.find_node_near(minetest.localplayer:get_pos(), 5, "mcl_core:water_source", true)
if pos then
minetest.place_node(pos)
end
end
minetest.after(0, loop)
end
minetest.after(1, loop)
minetest.register_chatcommand("destroywater", {
param = "true|false",
description = "Turn destroy water on/off",
func = function(param)
destroy_water = minetest.is_yes(param)
end
})

View File

@ -3,7 +3,7 @@ load_mod_buildbot = true
load_mod_colour_chat = true
load_mod_custom = true
load_mod_echest = true
load_mod_autofarm = true
load_mod_commands = true
load_mod_test = false
load_mod_destroyliquids = true
load_mod_autofarm = false

BIN
fonts/Arimo-Regular-old.ttf Normal file

Binary file not shown.

BIN
fonts/Arimo-Regular.ttf Normal file → Executable file

Binary file not shown.

View File

@ -116,7 +116,7 @@ void MeshMakeData::setCrack(int crack_level, v3s16 crack_pos)
void MeshMakeData::setSmoothLighting(bool smooth_lighting)
{
m_smooth_lighting = smooth_lighting;
m_smooth_lighting = smooth_lighting && ! g_settings->getBool("fullbright");
}
/*