mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
SAO limits: Allow SAOs to exist outside the set 'mapgen limit'
This commit is contained in:
parent
88a7160ad8
commit
359a940dde
6 changed files with 5 additions and 48 deletions
|
@ -395,19 +395,6 @@ void LuaEntitySAO::step(float dtime, bool send_recommended)
|
|||
m_env->getScriptIface()->luaentity_Step(m_id, dtime);
|
||||
}
|
||||
|
||||
// Remove LuaEntity beyond terrain edges
|
||||
{
|
||||
ServerMap *map = dynamic_cast<ServerMap *>(&m_env->getMap());
|
||||
assert(map);
|
||||
if (!m_pending_removal &&
|
||||
map->saoPositionOverLimit(m_base_position)) {
|
||||
infostream << "Removing SAO " << m_id << "(" << m_init_name
|
||||
<< "), outside of limits" << std::endl;
|
||||
m_pending_removal = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!send_recommended)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue