Players can sit/lay in air #1
Labels
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/mcl_cozy#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Basically, we need to check somehow if player is standing on air currently (and if yes - just don't mount). That's fix of mounting while flying or in jumpBut we'll be still able to sit/lay on solid node, destroy it anyhow and stay in the air. Need to check gravity somehow too
Tried to implement first fix viamcl_playerinfo
, but no result sadly.UPD: still need to check gravity somehow and make players fall even while mounted somehow (or dismound and fall if node below is air already?)
something like
if minetest.get_node(vector.offset(pos,0,-1,0)).name ~= "air" then return end
should probably get the worst of it
Added. Result is builtin vector error... I'm using 5.6.0-dev btw, dunno if it's the reason.
Added as:
Crash text (folder is called minetest-5.5.0-51cfb57, but it's 5.6.0-dev (like, not changing main folder but replacing bin, builtin and client with new ones XD)):
uh yes ... you obv need to replace the pos with a position .. player:get_pos() in your example should work
also it needs to be == "air" hehe
this should work as is
Thanks! But we'll still have the bug with flying in air after destroying node below player, sadly.
hehe yeah it should prob check periodically
Fixed in
90303158ad
.