mirror of
https://github.com/bdnugget/freeminer.git
synced 2026-11-07 06:57:27 +00:00
merge fix
This commit is contained in:
1 parent
44f17e4336
commit
5da41206bc
2 files changed
+7
-1
No files matched your search
@@ -763,3 +763,7 @@ std::string analyze_block(MapBlock *block);
|
||||
using MapBlockPtr = std::shared_ptr<MapBlock>;
|
||||
// using MapBlockPtr = MapBlock *;
|
||||
|
||||
inline std::string analyze_block(const MapBlockPtr &block)
|
||||
{
|
||||
return analyze_block(block.get());
|
||||
};
|
||||
+3
-1
@@ -374,7 +374,9 @@ void ServerMap::finishBlockMake(BlockMakeData *data,
|
||||
|
||||
/* Border blocks are grabbed during
|
||||
generation but mustn't be marked generated. */
|
||||
if (bp >= bpmin && bp <= bpmax) {
|
||||
if (bp.X >= bpmin.X && bp.X <= bpmax.X
|
||||
&& bp.Y >= bpmin.Y && bp.Y <= bpmax.Y
|
||||
&& bp.Z >= bpmin.Z && bp.Z <= bpmax.Z) {
|
||||
block->setGenerated(true);
|
||||
// Set timestamp to ensure correct application
|
||||
// of LBMs and other stuff.
|
||||
|
||||
Reference in new issue
Block a user