Update 'mods/binoculars/init.lua'

This commit is contained in:
thunderdog1138 2020-07-21 22:41:48 +00:00
parent 155d4fb3b9
commit 27903ea985
1 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ function binoculars.update_player_property(player)
local new_zoom_fov = 0
if player:get_inventory():contains_item(
"main", "binoculars:binoculars") then
"main", "binoculars:macrobinoculars") then
new_zoom_fov = 10
elseif creative_enabled then
new_zoom_fov = 15
@ -58,9 +58,9 @@ minetest.after(4.7, cyclic_update)
-- Binoculars item
minetest.register_craftitem("binoculars:binoculars", {
description = S("Binoculars") .. "\n" .. S("Use with 'Zoom' key"),
inventory_image = "binoculars_binoculars.png",
minetest.register_craftitem("binoculars:macrobinoculars", {
description = S("Macrobinoculars") .. "\n" .. S("Use with 'Zoom' key"),
inventory_image = "macrobinoculars.png",
stack_max = 1,
on_use = function(itemstack, user, pointed_thing)
@ -72,7 +72,7 @@ minetest.register_craftitem("binoculars:binoculars", {
-- Crafting
minetest.register_craft({
output = "binoculars:binoculars",
output = "binoculars:macrobinoculars",
recipe = {
{"default:obsidian_glass", "", "default:obsidian_glass"},
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},