Locked Drawers loose their locked item when looking inside them
ProxyPlayerHD opened this issue ยท 5 comments
title says it, if you look inside a Locked drawer that has no items left (so it shows an item but has 0 of if inside) then it will delete that ghost item, which defeats the purpose of it being locked in the first place.
MC: 1.12.2
Forge: 14.23.4.2747
SD: 5.3.7
Mind posting your mod list? A similar problem was found months ago that turned out to be the fault of TOPAddons, and the fault in that mod was promptly fixed.
I wish Forge had a command where it just generates a text file with all mods listed alphabetically and with their version, basically what i did by hand except automatic.
i also found out that they are not deleted but just invisible. trying to put other items in is very glitchy and relaoding the world fixes it and shows the locked item again until the drawer is again opened while empty
It looks like the field names in ItemStackHelper aren't given with their obfuscated forms, which explains why this issue doesn't manifest in a dev environment. The resolution is probably to find the obfuscated names corresponding to those four field names, and replace the ItemStack.class.getDeclaredField
and setAccessible
calls with the respective calls to ReflectionHelper.getPrivateValue
.