mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Perform server occlusion check before a block is loaded or generated (#14148)
This commit is contained in:
parent
edd947b645
commit
22a1653702
4 changed files with 29 additions and 17 deletions
|
@ -216,10 +216,14 @@ public:
|
|||
return m_pos_relative;
|
||||
}
|
||||
|
||||
inline core::aabbox3d<s16> getBox()
|
||||
inline core::aabbox3d<s16> getBox() {
|
||||
return getBox(getPosRelative());
|
||||
}
|
||||
|
||||
static inline core::aabbox3d<s16> getBox(const v3s16 &pos_relative)
|
||||
{
|
||||
return core::aabbox3d<s16>(getPosRelative(),
|
||||
getPosRelative()
|
||||
return core::aabbox3d<s16>(pos_relative,
|
||||
pos_relative
|
||||
+ v3s16(MAP_BLOCKSIZE, MAP_BLOCKSIZE, MAP_BLOCKSIZE)
|
||||
- v3s16(1,1,1));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue