mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Implement dropped items as LuaEntities; leave the old ones as is for compatibility
This commit is contained in:
parent
5bd32eca0f
commit
f0e7da8a63
6 changed files with 130 additions and 8 deletions
|
@ -1068,6 +1068,11 @@ public:
|
|||
bool do_interpolate = readU8(is);
|
||||
bool is_end_position = readU8(is);
|
||||
float update_interval = readF1000(is);
|
||||
|
||||
// Place us a bit higher if we're physical, to not sink into
|
||||
// the ground due to sucky collision detection...
|
||||
if(m_prop.physical)
|
||||
m_position += v3f(0,0.002,0);
|
||||
|
||||
if(do_interpolate){
|
||||
if(!m_prop.physical)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue