Skip to content

Commit e8097c9

Browse files
authoredAug 31, 2019
Creative: Override the hand instead of re-registering
Allows the initial hand registration to alter the 'wield_scale' without needing to also alter it in creative mod. Also make default mod a dependency again, as the initial hand registration is required.
1 parent 5c3e4b1 commit e8097c9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
 

‎mods/creative/init.lua

+2-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ if creative_mode_cache then
4040
local digtime = 42
4141
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256}
4242

43-
minetest.register_item(":", {
44-
type = "none",
45-
wield_image = "wieldhand.png",
46-
wield_scale = {x = 1, y = 1, z = 2.5},
43+
-- Override the hand tool
44+
minetest.override_item("", {
4745
range = 10,
4846
tool_capabilities = {
4947
full_punch_interval = 0.5,

‎mods/creative/mod.conf

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
name = creative
22
description = Minetest Game mod: creative
3-
depends = sfinv
4-
optional_depends = default
3+
depends = default, sfinv

0 commit comments

Comments
 (0)