mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Restore pointability backwards compatibility
This commit is contained in:
parent
731b84d725
commit
6a2eb4da07
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user