Don't use energy when using /home

pull/14/head
Brandon 2015-07-10 15:13:21 -05:00
parent 106a34d26e
commit 10a239f580
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ minetest.register_chatcommand("home", {
return true
end
last_moved[name] = time
player_lastpos[pname] = homepos[pname]
player:setpos(homepos[pname])
minetest.chat_send_player(name, "Teleported to home!")
else