ItemGraph 0.4.1 (Fabric 1.21.1)
Curse Maven Snippet
What's new
[0.4.1] — 2026-11-17
Fixed
- Grindstone/smithing/enchanting item duplication exploit (both loaders):
TransformationEventListener.onGrindstoneTake(NeoForge) and the NeoForgeSmithingMenuMixin, FabricEnchantmentMenuMixin,GrindstoneResultSlotMixin, andSmithingMenuMixinall calledContainerLevelAccess.evaluate((lvl, pos) -> { ...; return null; })to read the station's position for audit evidence. Vanilla's realContainerLevelAccessimplementation wraps that return value inOptional.of(...), notOptional.ofNullable(...), so thenullreturn threw aNullPointerExceptionon every single grindstone take (and every smithing/enchanting use) once ItemGraph 0.4.0 shipped grindstone recording. On NeoForge that exception propagated out throughCommonHooks.onGrindstoneTakeandEventBus.post(), abortingGrindstoneMenu$4.onTake()before vanilla's own post-take slot consumption ran — letting a player take a disenchanted copy of an item without the original ever being consumed. All five call sites now return a non-null sentinel (Boolean.TRUE); the return value was never otherwise used. Regression-tested against a realContainerLevelAccess.create(...)instance (not a mock) so the test exercises the exactOptional.ofcontract that broke in production.
This mod has no additional files

