provide backaguard falback on older servers, biome data functions missing
* will work with 0.4 servers like just test and famous subnasa * make it work with older versions of minetest
This commit is contained in:
parent
8dcdce2b39
commit
f7e607f017
@ -174,6 +174,11 @@ if essentials.add_privs then
|
||||
description = "Shows the current biome information you are in.",
|
||||
func = function(name, param)
|
||||
local pos = minetest.get_player_by_name(name):get_pos()
|
||||
if not minetest.has_feature("object_use_texture_alpha") then
|
||||
core.chat_send_player(name, core.colorize("red", "Biome info cannot retrieve, server engine does not support the command!"))
|
||||
minetest.sound_play("error", name)
|
||||
minetest.log("error","[essentials] server mineitest engine too old, biome data not supported!, upgrade server")
|
||||
end
|
||||
local biomeinfo = minetest.get_biome_data(pos)
|
||||
local biome = minetest.get_biome_name(biomeinfo.biome)
|
||||
if param == "" then
|
||||
|
Loading…
x
Reference in New Issue
Block a user