Skip to content

Commit

Permalink
改一些代码
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohengying committed Sep 1, 2021
1 parent 5273a9a commit 6f1d628
Show file tree
Hide file tree
Showing 13 changed files with 639 additions and 638 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ version/*
*.zip
venv/
log/
/vsbuild
/vsbuild
/sym
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ add_library(${MOD_API_NAME} STATIC
api/tools/MsgBuilder.cpp
api/tools/ThreadPool.h
api/lib/Remotery.c
api/world/LevelChunk.cpp
api/language/I18nManager.cpp
api/language/I18nManager.h
api/tools/CastHelper.h
Expand All @@ -65,7 +64,7 @@ target_link_libraries(${MOD_API_NAME} ${PROJECT_SOURCE_DIR}/api/lib/detours.lib)

####################这里是具体功能##########################
#设置插版本
set(TRAPDOOR_VERSION 0.9.72)
set(TRAPDOOR_VERSION 0.9.80)
#设置游戏版本
set(MCBE_VERSION 1.16.40.2)
#是否是测试版
Expand Down
1 change: 0 additions & 1 deletion api/block/BlockSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "world/Biome.h"
#include "lib/mod.h"
#include "lib/SymHook.h"
#include "world/LevelChunk.h"

namespace trapdoor {
using namespace SymHook;
Expand Down
11 changes: 9 additions & 2 deletions api/world/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ namespace trapdoor {
return *SYM_CALL(uint64_t*(*)(Level * ),
MSSYM_B1QE14getCurrentTickB1AA5LevelB2AAE12QEBAAEBUTickB2AAA2XZ, this);
}
bool Level::noPlayerExists() {
int num = 0;
this->forEachPlayer([&num](Actor *actor){
++num;
printf("num is %d",num);
});
return num==0;
}


}
}
2 changes: 2 additions & 0 deletions api/world/Level.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ namespace trapdoor {


uint64_t getGameTick();

bool noPlayerExists();
};
}

Expand Down
5 changes: 0 additions & 5 deletions api/world/LevelChunk.cpp

This file was deleted.

15 changes: 0 additions & 15 deletions api/world/LevelChunk.h

This file was deleted.

3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.16.4.02-0.9.80
- 当服务求处于frozen状态且服务求内没有玩家的时候会自动切换到正常状态
- 修复仙人掌可以转蛋糕的问题
## 1.16.4.02-0.9.72
- 修复开启village v后击杀村民闪退的问题
- 修复假人连接占用cpu过高的问题
Expand Down
Loading

0 comments on commit 6f1d628

Please sign in to comment.