Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 2fb89ca

Browse files
authored
Release 2.14.0 (#1299)
2 parents 6980617 + ac0b8a9 commit 2fb89ca

File tree

16 files changed

+108
-95
lines changed

16 files changed

+108
-95
lines changed

.github/workflows/publish_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ jobs:
111111
shell: cmd
112112

113113
- name: Build SymDBHelper
114-
run: cmake --build ${{github.workspace}}/build_clang --config ${{env.BUILD_TYPE}} --target SymDBHelper
114+
run: |
115+
cmake --build ${{github.workspace}}/build_clang --config ${{env.BUILD_TYPE}} --target SymDBHelper
116+
cp .\build_clang\sdk\lib\SymDBHelper.lib .\build\sdk\lib\SymDBHelper.lib
115117
116118
- name: Compress resource packs for LiteLoaderBDS
117119
run: |

LLPreLoader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_BUILD_TYPE Release)
77
add_definitions(-D"NDEBUG" -D"_WINDOWS" -D"_USRDLL" -D"_WINDLL" -D"_UNICODE" -D"UNICODE")
88

99
add_compile_options(
10-
/permissive- /GS /GL /W0 /Gy /Zc:wchar_t /Zi /Gm- /O2 /sdl /Zc:inline /fp:precise
10+
/permissive- /GS /GL /W3 /Gy /Zc:wchar_t /Zi /Gm- /O2 /sdl /Zc:inline /fp:precise
1111
/errorReport:prompt /WX- /Zc:forScope /Gd /Oi /MD /FC /EHsc /nologo /diagnostics:column
1212
)
1313

LLPreLoader/include/Logger.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ inline void loadConfig() {
3434
if (std::filesystem::exists("plugins/LiteLoader/LiteLoader.json")) {
3535
try {
3636
LoadConfigFromJson("plugins/LiteLoader/LiteLoader.json");
37-
} catch (std::exception& e) {
38-
ColorLog = true;
3937
} catch (...) {
4038
ColorLog = true;
4139
}

LLPreLoader/src/SymDB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ extern _declspec(dllexport) std::vector<string> dlsym_reverse(int addr) {
227227
if (!rvaMap)
228228
InitReverseLookup();
229229
// TODO: Fix Narrowing Conversion
230-
addr = addr - imageBaseAddr;
230+
addr = (int)(addr - imageBaseAddr);
231231
auto const iter = rvaMap->equal_range(addr);
232232
std::vector<string> ret;
233233
for (auto it = iter.first; it != iter.second; ++it) {

LiteLoader/include/llapi/EventAPI.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -649,12 +649,6 @@ class WitherBossDestroyEvent : public EventTemplate<WitherBossDestroyEvent> {
649649
AABB mDestroyRange{{}, {}};
650650
};
651651

652-
class EnderDragonDestroyEvent : public EventTemplate<EnderDragonDestroyEvent> {
653-
public:
654-
EnderDragon* mEnderDragon = nullptr;
655-
BlockLegacy* mBlockLegacy = nullptr;
656-
};
657-
658652
class EntityRideEvent : public EventTemplate<EntityRideEvent> {
659653
public:
660654
Actor* mRider = nullptr;

LiteLoader/include/llapi/mc/Biome.hpp

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,26 @@
1010
// Include Headers or Declare Types Here
1111

1212
enum class VanillaBiomeTypes : int{
13-
Beach = 0x0,
14-
Desert = 0x1,
15-
ExtremeHills = 0x2,
16-
FlatWorld = 0x3,
17-
Forest = 0x4,
18-
Hell = 0x5,
19-
//TODO: confirm IcePlainsSpikes
20-
IcePlainsSpikes = 0x6, // The Ice Plains Spikes Biome is a rare variant of the ice plains biome, containing unique ice structures. It is quite cold, with most water frozen as ice.
21-
Jungle = 0x7,
22-
Mesa = 0x8, // Mesa is a very rare biome which is made up from red sand, cacti, dead bushes and plateaus. The red sand is only one layer thick. Red sand is found in the Mesa itself, not its variants. Water patches are found but are not a variant.
23-
MushroomIsland = 0x9,
24-
Ocean = 0xA,
25-
Plain = 0xB,
26-
River = 0xC,
27-
Savanna = 0xD, // A savanna is a dry biome with scattered acacia trees. It typically generates bordering a desert, forest or plains biome and has three variations total.
28-
RockyBeach = 0xE,
29-
Swamp = 0xF, // The Minecraft Swamp biome is a waterlogged area, consisting of many small islands separated by vast canals of water. In the Bedrock Edition, this water is a murky brown color, and this version also allows for Huge Mushrooms to appear on the islands.
30-
TaigaForest = 0x10,
31-
TheEnd = 0x11,
32-
Custom = 0x12, // Dirve by bahavior pack?
33-
};
13+
Beach = 0x0,
14+
Desert = 0x1,
15+
ExtremeHills = 0x2,
16+
Flat = 0x3,
17+
Forest = 0x4,
18+
Hell = 0x5,
19+
Ice = 0x6,
20+
Jungle = 0x7,
21+
Mesa = 0x8,
22+
MushroomIsland = 0x9,
23+
Ocean = 0xA,
24+
Plain = 0xB,
25+
River = 0xC,
26+
Savanna = 0xD,
27+
StoneBeach = 0xE,
28+
Swamp = 0xF,
29+
Taiga = 0x10,
30+
TheEnd = 0x11,
31+
DataDriven = 0x12,
32+
};
3433

3534
#undef BEFORE_EXTRA
3635

LiteLoader/include/llapi/mc/BlockActorDataPacket.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class BlockActorDataPacket : public Packet {
2121

2222
#define AFTER_EXTRA
2323
// Add Member There
24+
char filler[40];
2425

2526
#undef AFTER_EXTRA
2627
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_BLOCKACTORDATAPACKET

LiteLoader/include/llapi/mc/BlockEventDispatcher.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#define BEFORE_EXTRA
1010
// Include Headers or Declare Types Here
11+
#include "llapi/mc/ListenerInfo.hpp"
1112

1213
#undef BEFORE_EXTRA
1314

@@ -19,6 +20,8 @@ class BlockEventDispatcher {
1920

2021
#define AFTER_EXTRA
2122
// Add Member There
23+
public:
24+
std::unordered_map<int, std::unique_ptr<ListenerInfo>> listeners;
2225

2326
#undef AFTER_EXTRA
2427
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_BLOCKEVENTDISPATCHER

LiteLoader/include/llapi/mc/BlockEventDispatcherToken.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#define BEFORE_EXTRA
1010
// Include Headers or Declare Types Here
11+
typedef int ListenerHandle;
12+
#include "llapi/mc/BlockEventDispatcher.hpp"
1113

1214
#undef BEFORE_EXTRA
1315

@@ -19,6 +21,9 @@ class BlockEventDispatcherToken {
1921

2022
#define AFTER_EXTRA
2123
// Add Member There
24+
public:
25+
ListenerHandle mHandle;
26+
BlockEventDispatcher *mDispatcher;
2227

2328
#undef AFTER_EXTRA
2429
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_BLOCKEVENTDISPATCHERTOKEN

LiteLoader/include/llapi/mc/UpdateBlockPacket.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class UpdateBlockPacket : public Packet {
2020

2121
#define AFTER_EXTRA
2222
// Add Member There
23+
char filler[24];
2324

2425
#undef AFTER_EXTRA
2526
#ifndef DISABLE_CONSTRUCTOR_PREVENTION_UPDATEBLOCKPACKET

0 commit comments

Comments
 (0)