Skip to content

Commit

Permalink
Restore pointability backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Jan 23, 2024
1 parent 731b84d commit 6a2eb4d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/util/pointabilities.h
Expand Up @@ -26,8 +26,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,

enum class PointabilityType : u8
{
// Can be pointed through.
// Note: This MUST be the 0-th item in the enum for backwards compat.
// Older Minetest versions send "pointable=false" as "0".
POINTABLE_NOT,
// Is pointable.
// Note: This MUST be the 1-th item in the enum for backwards compat:
// Older Minetest versions send "pointable=true" as "1".
POINTABLE,
POINTABLE_NOT, // Can be pointed through.
// Note: Since (u8) 2 is truthy,
// older clients will understand this as "pointable=true",
// which is a reasonable fallback.
POINTABLE_BLOCKING,
};

Expand Down

0 comments on commit 6a2eb4d

Please sign in to comment.