mirror of
https://github.com/bdnugget/freeminer.git
synced 2026-11-07 06:57:27 +00:00
fix
This commit is contained in:
1 parent
d64fad12a8
commit
648c00ccde
4 files changed
+8
-7
No files matched your search
+3
-3
@@ -375,7 +375,7 @@ weather::humidity_t ServerMap::updateBlockHumidity(ServerEnvironment *env,
|
||||
int ServerMap::getSurface(const v3pos_t &basepos, int searchup, bool walkable_only)
|
||||
{
|
||||
|
||||
s16 max = MYMIN(searchup + basepos.Y, 0x7FFF);
|
||||
pos_t max = MYMIN(searchup + basepos.Y, 0x7FFF);
|
||||
|
||||
MapNode last_node = getNode(basepos);
|
||||
MapNode node = last_node;
|
||||
@@ -1329,7 +1329,7 @@ bool ServerMap::propagateSunlight(
|
||||
}
|
||||
//#endif
|
||||
|
||||
void ServerMap::lighting_modified_add(const v3pos_t &pos, int range)
|
||||
void ServerMap::lighting_modified_add(const v3bpos_t &pos, int range)
|
||||
{
|
||||
MutexAutoLock lock(m_lighting_modified_mutex);
|
||||
if (m_lighting_modified_blocks.contains(pos)) {
|
||||
@@ -1414,7 +1414,7 @@ MapNode Map::getNodeNoEx(v3pos_t p) {
|
||||
* Get the ground level by searching for a non CONTENT_AIR node in a column from top to
|
||||
* bottom
|
||||
*/
|
||||
s16 ServerMap::findGroundLevel(v2pos_t p2d, bool cacheBlocks)
|
||||
pos_t ServerMap::findGroundLevel(v2pos_t p2d, bool cacheBlocks)
|
||||
{
|
||||
|
||||
pos_t level;
|
||||
|
||||
+2
-2
@@ -334,8 +334,8 @@ void ServerMap::finishBlockMake(BlockMakeData *data,
|
||||
if (save_generated_block)
|
||||
block->raiseModified(MOD_STATE_WRITE_NEEDED,
|
||||
MOD_REASON_EXPIRE_IS_AIR, false);
|
||||
else
|
||||
block->setLightingComplete(0);
|
||||
|
||||
block->setLightingComplete(0);
|
||||
}
|
||||
|
||||
ServerEnvironment *senv = &((Server *)m_gamedef)->getEnv();
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ public:
|
||||
std::mutex m_lighting_modified_mutex;
|
||||
std::map<v3bpos_t, int> m_lighting_modified_blocks;
|
||||
std::map<unsigned int, lighting_map_t> m_lighting_modified_blocks_range;
|
||||
void lighting_modified_add(const v3pos_t &pos, int range = 5);
|
||||
void lighting_modified_add(const v3bpos_t &pos, int range = 5);
|
||||
|
||||
void unspreadLight(enum LightBank bank, std::map<v3pos_t, u8> &from_nodes,
|
||||
std::set<v3pos_t> &light_sources,
|
||||
|
||||
@@ -214,7 +214,8 @@ our $options = {
|
||||
profiler_max_page => 1,
|
||||
profiler_page => 1,
|
||||
debug_log_level => 'info',
|
||||
movement_speed_fast => 10000,
|
||||
movement_speed_fast => 100000,
|
||||
movement_acceleration_fast => 100,
|
||||
max_block_send_distance => 100,
|
||||
default_privs => 'interact, shout, teleport, settime, privs, fly, noclip, fast, debug',
|
||||
default_privs_creative => 'interact, shout, teleport, settime, privs, fly, noclip, fast, debug',
|
||||
|
||||
Reference in new issue
Block a user