Auto disable smooth lighting when fullbright is active
This commit is contained in:
parent
6796baec66
commit
305e0e0d31
@ -8,4 +8,4 @@ local function loop()
|
|||||||
minetest.after(0.1, loop)
|
minetest.after(0.1, loop)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.after(0.1, loop)
|
minetest.register_on_connect(loop)
|
||||||
|
@ -1 +1,22 @@
|
|||||||
minetest.override_item("air", {liquids_pointable = true})
|
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
|
||||||
|
})
|
||||||
|
@ -3,7 +3,7 @@ load_mod_buildbot = true
|
|||||||
load_mod_colour_chat = true
|
load_mod_colour_chat = true
|
||||||
load_mod_custom = true
|
load_mod_custom = true
|
||||||
load_mod_echest = true
|
load_mod_echest = true
|
||||||
load_mod_autofarm = true
|
|
||||||
load_mod_commands = true
|
load_mod_commands = true
|
||||||
load_mod_test = false
|
load_mod_test = false
|
||||||
load_mod_destroyliquids = true
|
load_mod_destroyliquids = true
|
||||||
|
load_mod_autofarm = false
|
||||||
|
BIN
fonts/Arimo-Regular-old.ttf
Normal file
BIN
fonts/Arimo-Regular-old.ttf
Normal file
Binary file not shown.
BIN
fonts/Arimo-Regular.ttf
Normal file → Executable file
BIN
fonts/Arimo-Regular.ttf
Normal file → Executable file
Binary file not shown.
@ -116,7 +116,7 @@ void MeshMakeData::setCrack(int crack_level, v3s16 crack_pos)
|
|||||||
|
|
||||||
void MeshMakeData::setSmoothLighting(bool smooth_lighting)
|
void MeshMakeData::setSmoothLighting(bool smooth_lighting)
|
||||||
{
|
{
|
||||||
m_smooth_lighting = smooth_lighting;
|
m_smooth_lighting = smooth_lighting && ! g_settings->getBool("fullbright");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user