Skip to content

Commit

Permalink
register as tool for unified_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Feb 2, 2022
1 parent d9b5ae2 commit 9a12983
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local S = (minetest.global_exists('S') and S) or function(s) return s end

--settings
postool = {
version = 20211203.1927,
version = 20220202.0202,
S = S,
-- Position of hud
hudPosX = tonumber(minetest.settings:get('postool.hud.offsetx') or 0.8),
Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = postool
description = Adds a HUD to show current ingame time and position also tool to visualize map-blocks
optional_depends = advtrains, mesecons_debug
optional_depends = advtrains, mesecons_debug, unified_inventory

7 changes: 7 additions & 0 deletions tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ minetest.register_craft({

}) -- register_craft


-- register with unified_inventory, if exists
if minetest.global_exists('unified_inventory') then
unified_inventory.add_category_item('tools', 'postool:wand')
end


-- 'constants' for this session
local tChunkConstants = {
iChunkLength = 16 * postool.serverChunkSize,
Expand Down

0 comments on commit 9a12983

Please sign in to comment.