From ff5bf77f3bfd6f67f8f7986bffe9e2472272cef1 Mon Sep 17 00:00:00 2001 From: ShrBox Date: Thu, 11 Feb 2021 15:58:11 +0800 Subject: [PATCH] prepare for 0.1.4 --- headers/liteloader.h | 2 +- headers/mc/Core.h | 4 ++++ headers/mc/Item.h | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/headers/liteloader.h b/headers/liteloader.h index 03195fb2c3..dfdc722990 100644 --- a/headers/liteloader.h +++ b/headers/liteloader.h @@ -1,4 +1,4 @@ #pragma once #define LIAPI __declspec(dllexport) typedef unsigned char uchar; -#define LiteLoaderVersion "0.1.3" \ No newline at end of file +#define LiteLoaderVersion "0.1.4" \ No newline at end of file diff --git a/headers/mc/Core.h b/headers/mc/Core.h index b5f57059df..28ceed9853 100644 --- a/headers/mc/Core.h +++ b/headers/mc/Core.h @@ -39,6 +39,9 @@ class BlockPos { inline bool operator!=(BlockPos const& rv)const { return x != rv.x || y != rv.y || z != rv.z; } + inline std::string toString() { + return std::to_string(x) + "," + std::to_string(y) + "," + std::to_string(z); + } //template /*void pack(WBStreamImpl<_TP>& ws) const { ws.apply(x, y, z); @@ -47,6 +50,7 @@ class BlockPos { rs.apply(x, y, z); }*/ }; + struct IVec2 { int x, z; IVec2(Vec3 l) { diff --git a/headers/mc/Item.h b/headers/mc/Item.h index 40fb93917d..a09a5a157c 100644 --- a/headers/mc/Item.h +++ b/headers/mc/Item.h @@ -1,5 +1,7 @@ #pragma once #include "Core.h" +#include + class ItemStackBase { char filler[136];