Eating is broken on Android #4351

Closed
opened 2024-05-31 17:58:31 +02:00 by grorp · 4 comments
Contributor

Today, I downloaded the latest version of VoxeLibre from ContentDB on my phone. I suppose that would be version 0.87.0.

What happened?

I can't eat anymore in survival mode. Eating requires holding the place button now, which is (and has always been) impossible on Android.

See https://github.com/minetest/minetest/issues/8543. The solution is https://github.com/minetest/minetest/pull/14087, which will be included in 5.9.0 and requires you to set touch_interaction = "short_dig_long_place"on your food items. For 5.9.0, this is a quick fix:

minetest.register_on_mods_loaded(function()
	for name, def in pairs(minetest.registered_items) do
		if minetest.get_item_group(name, "eatable") ~= 0 or
				minetest.get_item_group(name, "food") ~= 0 then
			minetest.override_item(name, {touch_interaction = "short_dig_long_place"})
		end
	end
end)

Unless you decide to set the yet-unreleased Minetest 5.9.0 as your minimum version, a workaround is necessary so that Android players don't starve.

What should happen:

I should be able to eat.

Steps to reproduce

Try to eat something on Android.

Today, I downloaded the latest version of VoxeLibre from ContentDB on my phone. I suppose that would be version 0.87.0. ### What happened? I can't eat anymore in survival mode. Eating requires holding the place button now, which is (and has always been) impossible on Android. See https://github.com/minetest/minetest/issues/8543. The solution is https://github.com/minetest/minetest/pull/14087, which will be included in 5.9.0 and requires you to set `touch_interaction = "short_dig_long_place"`on your food items. For 5.9.0, this is a quick fix: ```lua minetest.register_on_mods_loaded(function() for name, def in pairs(minetest.registered_items) do if minetest.get_item_group(name, "eatable") ~= 0 or minetest.get_item_group(name, "food") ~= 0 then minetest.override_item(name, {touch_interaction = "short_dig_long_place"}) end end end) ``` Unless you decide to set the yet-unreleased Minetest 5.9.0 as your minimum version, a workaround is necessary so that Android players don't starve. ### What should happen: I should be able to eat. ### Steps to reproduce Try to eat something on Android.
grorp added the
bug
unconfirmed
labels 2024-05-31 17:58:31 +02:00
Contributor

Hi, I just checked eating on Android 13 with Minetest 5.8.0 and I could eat.

On PC, players now have to hold the right mouse button pressed to eat. This was done to prevent accidental eating of stuff. On a touch screen, the right click is done by double tapping the screen. To replicate the new action on touch-enabled devices, you have to hold your finger on the screen after the second tap.

So if you have at least Minetest 5.8.0, you should be able to eat with the current release of the game. Let us know if that worked for you.

Hi, I just checked eating on Android 13 with Minetest 5.8.0 and I could eat. On PC, players now have to hold the right mouse button pressed to eat. This was done to prevent accidental eating of stuff. On a touch screen, the right click is done by double tapping the screen. To replicate the new action on touch-enabled devices, you have to hold your finger on the screen after the second tap. So if you have at least Minetest 5.8.0, you should be able to eat with the current release of the game. Let us know if that worked for you.
Author
Contributor

Ah, you already have a workaround in place so that holding "dig" also works after an initial "place" press.

I didn't try double-tapping, not sure whether I could've known, but: I'm happy to see you actually tested the thing on Android 👍

Ah, you already have a workaround in place so that holding "dig" also works after an initial "place" press. I didn't try double-tapping, not sure whether I could've known, but: I'm happy to see you actually tested the thing on Android 👍
grorp closed this issue 2024-05-31 23:19:13 +02:00
Contributor

I didn't try double-tapping, not sure whether I could've known, but: I'm happy to see you actually tested the thing on Android 👍

We're so used with a lot of players playing Minecraft too, that it didn't occur to us that their eating mechanic is not second nature to everyone. It was not a good assumption, and for anything else in the future that is this important to communicate I proposed #4345, so people can learn about the significant changes even if they go offline after updating.

> I didn't try double-tapping, not sure whether I could've known, but: I'm happy to see you actually tested the thing on Android 👍 We're so used with a lot of players playing Minecraft too, that it didn't occur to us that their eating mechanic is not second nature to everyone. It was not a good assumption, and for anything else in the future that is this important to communicate I proposed #4345, so people can learn about the significant changes even if they go offline after updating.
Author
Contributor

We're so used with a lot of players playing Minecraft too, that it didn't occur to us that their eating mechanic is not second nature to everyone.

I'm familiar with the eating mechanic in Minecraft. You don't have to double-tap to eat on mobile there :)

Your communication proposal seems reasonable.

> We're so used with a lot of players playing Minecraft too, that it didn't occur to us that their eating mechanic is not second nature to everyone. I'm familiar with the eating mechanic in Minecraft. You don't have to double-tap to eat on mobile there :) Your communication proposal seems reasonable.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#4351
No description provided.