mirror of
https://github.com/4Evergreen4/death_messages.git
synced 2025-01-25 06:30:22 +01:00
Changed singleplayer name
This commit is contained in:
parent
c98eec4f5d
commit
1290e15b8e
2
init.lua
2
init.lua
@ -104,7 +104,7 @@ minetest.register_on_dieplayer(function(player)
|
|||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
local node = minetest.registered_nodes[minetest.get_node(player:getpos()).name]
|
local node = minetest.registered_nodes[minetest.get_node(player:getpos()).name]
|
||||||
if minetest.is_singleplayer() then
|
if minetest.is_singleplayer() then
|
||||||
player_name = "You"
|
player_name = "The player"
|
||||||
end
|
end
|
||||||
-- Death by lava
|
-- Death by lava
|
||||||
if node.groups.lava ~= nil then
|
if node.groups.lava ~= nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user