1
0
Fork 0

controls:android:fix bow/rocket/spyglass/burger_follow

this requires the following minetest pr
https://github.com/minetest/minetest/pull/14087
This commit is contained in:
bakawun 2023-12-11 11:45:04 +01:00
parent ba564f843f
commit 06132d01a8
1 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
minetest.register_on_mods_loaded(function()
for name in pairs(minetest.registered_items) do
if name:find("bow") then
minetest.override_item(name, {
touch_controls = {
pointed_nothing = "short_dig_long_place",
pointed_node = "short_dig_long_place",
pointed_object = "short_dig_long_place",
},
})
end
end
for name in pairs(minetest.registered_items) do
if name:find("spyglass") then
minetest.override_item(name, {
touch_controls = {
pointed_nothing = "short_dig_long_place",
pointed_node = "short_dig_long_place",
pointed_object = "short_dig_long_place",
},
})
end
end
for name in pairs(minetest.registered_items) do
if name:find("rocket") then
minetest.override_item(name, {
touch_controls = {
pointed_nothing = "short_dig_long_place",
pointed_node = "short_dig_long_place",
pointed_object = "short_dig_long_place",
},
})
end
end
for name in pairs(minetest.registered_items) do
if name:find("hamburger") then
minetest.override_item(name, {
touch_controls = {
pointed_nothing = "short_dig_long_place",
pointed_node = "short_dig_long_place",
pointed_object = "short_dig_long_place",
},
})
end
end
end)