/grief_check fix compatibility issue

I don't think "settings:get_bool" exists on 0.4.14.
This commit is contained in:
Elkien3 2017-09-23 21:48:56 -05:00
parent e48f5b9681
commit f15a49801f

View File

@ -203,7 +203,7 @@ minetest.register_chatcommand("grief_check", {
.. " hours = 24 = 1d, limit = 5",
privs = {interact=true},
func = function(name, param)
if not minetest.settings:get_bool("enable_rollback_recording") then
if not minetest.setting_getbool("enable_rollback_recording") then
return false, "Rollback functions are disabled."
end
local range, hours, limit =