Client "Creative Mode" setting overrides game setting #3028

Open
opened 2022-11-27 05:08:38 +01:00 by kneekoo · 2 comments
Contributor

By starting a game with "Creative Mode" enabled from the client, using /gamemode survival to switch away from the creative UI doesn't have the expected effect - the game stays in creative mode.

On top of that, the default mining/punch range of Minetest also overrides our values.

By starting a game with "Creative Mode" enabled from the client, using `/gamemode survival` to switch away from the creative UI doesn't have the expected effect - the game stays in creative mode. On top of that, the default mining/punch range of Minetest also overrides our values.
kneekoo added the
bug
gameplay
labels 2022-11-27 05:08:39 +01:00
Contributor

Idk about the punch range, might be that we just doesn't apply it for "setting-creative" but the creative mode overriding is intentional i guess ... to a degree at least, the idea was to preserve the old behavior as much as possible.

To fix this, if we want to, we'd basically have to make the setting-creative the same as gamemode-creative, in technical terms: our minetest.is_creative_enabled would always have to return the player setting and not the global setting.

Some things would probably be different in setting-creative then however.

Idk about the punch range, might be that we just doesn't apply it for "setting-creative" but the creative mode overriding is intentional i guess ... to a degree at least, the idea was to preserve the old behavior as much as possible. To fix this, if we want to, we'd basically have to make the setting-creative the same as gamemode-creative, in technical terms: our minetest.is_creative_enabled would always have to return the player setting and not the global setting. Some things would probably be different in setting-creative then however.
Author
Contributor

If possible, the game should start in creative mode if the client had this option enabled, regardless of what the gamemode was before shutting down. But if /gamemode survival is issued, we should switch to survival even if the "Creative Mode" was enabled.

If possible, the game should start in creative mode if the client had this option enabled, regardless of what the gamemode was before shutting down. But if `/gamemode survival` is issued, we should switch to survival even if the "Creative Mode" was enabled.
ancientmarinerdev added the
commands
creative mode
labels 2023-02-03 15:36:19 +01:00
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#3028
No description provided.