Skip to content

Commit

Permalink
Replace deprecated settings method (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
texmex authored and FaceDeer committed Jun 18, 2017
1 parent 8a7ebcf commit eb26adc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.lua
@@ -1,17 +1,17 @@
hopper.config = {}

-- settings
hopper.config.texture_resolution = minetest.setting_get("hopper_texture_size")
hopper.config.texture_resolution = minetest.settings:get("hopper_texture_size")
if hopper.config.texture_resolution == nil then
hopper.config.texture_resolution = "16"
end

hopper.config.single_craftable_item = minetest.setting_getbool("hopper_single_craftable_item")
hopper.config.single_craftable_item = minetest.settings:get_bool("hopper_single_craftable_item")
if hopper.config.single_craftable_item == nil then
hopper.config.single_craftable_item = true
end

hopper.config.eject_button_enabled = minetest.setting_getbool("hopper_eject_button")
hopper.config.eject_button_enabled = minetest.settings:get_bool("hopper_eject_button")
if hopper.config.eject_button_enabled == nil then
hopper.config.eject_button_enabled = true
end

0 comments on commit eb26adc

Please sign in to comment.