mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Don't see through nodes without noclip privileges
This commit is contained in:
parent
6c3829c2b5
commit
32552fede5
@ -864,7 +864,7 @@ void ClientMap::renderPostFx()
|
||||
// - If the player is in liquid, draw a semi-transparent overlay.
|
||||
const ContentFeatures& features = nodemgr->get(n);
|
||||
video::SColor post_effect_color = features.post_effect_color;
|
||||
if(features.solidness == 2 && g_settings->getBool("free_move") == false)
|
||||
if(features.solidness == 2 && !(g_settings->getBool("noclip") && m_gamedef->checkLocalPrivilege("noclip")))
|
||||
{
|
||||
post_effect_color = video::SColor(255, 0, 0, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user