forked from VoxeLibre/VoxeLibre
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:
parent
ba564f843f
commit
06132d01a8
|
@ -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)
|
Loading…
Reference in New Issue