Skip to content

Commit 9a914c3

Browse files
committed
Remove unnecessary ItemRegistry get && bump version number ready for release
1 parent 21828c4 commit 9a914c3

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.12)
22
project(BetterInventory)
3-
set(MOD_VERSION "1.5.0")
3+
set(MOD_VERSION "1.5.1")
44

55
# Define only RelWithDebInfo as the available build configuration
66
set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo" CACHE STRING "Build configurations" FORCE)

src/dllmain.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ static void Shulker_appendFormattedHovertext(ShulkerBoxBlockItem* self, const It
5555
if (!itemStack.mUserData->contains("Items")) return;
5656

5757
const ListTag* items = itemStack.mUserData->getList("Items");
58-
ItemRegistryRef itemRegistryRef = level.mItemRegistry;
59-
auto registry = itemRegistryRef.mItemRegistry.lock();
6058

6159
for (int i = 0; i < items->size(); i++) {
6260
const CompoundTag* itemCompound = items->getCompound(i);

0 commit comments

Comments
 (0)