Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix level corrupt detect
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysca11 authored Mar 11, 2020
1 parent 095ae28 commit d10fb09
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mod/base/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ BDL_EXPORT void mod_init(list<string> &modlist);
BDL_EXPORT Minecraft *MC;
BDL_EXPORT Level *ServLevel;
}

struct DedicatedServer {
void stop();
};

DedicatedServer *dserver;
int lvlCorrupt;
THook(void *, _ZN14ServerInstance14onLevelCorruptEv, void *x) {
printf("LEVEL CORRUPT DETECTED!!!\n");
Expand Down Expand Up @@ -284,11 +290,6 @@ THook(
return ret;
}

struct DedicatedServer {
void stop();
};

DedicatedServer *dserver;
THook(
void *, _ZN15DedicatedServer5startERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, DedicatedServer *t,
string &b) {
Expand Down

0 comments on commit d10fb09

Please sign in to comment.