Remove silly 30000m restriction

This commit is contained in:
Wuzzy 2019-08-28 21:41:17 +02:00
parent 1fd777b4a5
commit ac8c7ff609
3 changed files with 0 additions and 15 deletions

View File

@ -112,7 +112,6 @@ Clam=Muschel
Sign=Schild
Bookshelf=Bücherregal
Chest=Truhe
Don't go past 30000m in any direction!=Gehen Sie nicht weiter als 30000m fort!
Creative Tool=Kreativwerkzeug
Wooden Pickaxe=Holzspitzhacke
Stone Pickaxe=Steinspitzhacke

View File

@ -112,7 +112,6 @@ Clam=
Sign=
Bookshelf=
Chest=
Don't go past 30000m in any direction!=
Creative Tool=
Wooden Pickaxe=
Stone Pickaxe=

View File

@ -15,19 +15,6 @@ local function step(dtime)
local head_pos = player_pos
local name=player:get_player_name()
if player_pos.x < -30000 or player_pos.x > 30000
or player_pos.y < -30000 or player_pos.y > 30000
or player_pos.z < -30000 or player_pos.z > 30000 then
minetest.chat_send_player(
name,
minetest.colorize(
"#f00",
S("Don't go past 30000m in any direction!")
))
player:set_pos(player_lastpos[name])
end
player_lastpos[name] = player:get_pos()
if player:get_hp() < player_health[name] then