Backhand
14 merged pull requests.
New Features
- #199 Adds offhandInventorySlotXOffset and offhandInventorySlotYOffset to BackhandConfigClient with range -100..100. MixinGuiInventory applies them to the drawn slot and updates the BackhandSlot display position every draw, so config changes take effect without rejoining the world. - @Ranzuu
- Added: offhandInventorySlotXOffset config option, offhandInventorySlotYOffset config option
Changes
- #201 Added "ExtraUtilities:watering_can" to the default mainhandUseStopsOffhandFallback array in BackhandConfig. Existing config files keep their current list. - @C0bra5
- Added: watering can in default mainhandUseStopsOffhandFallback list
- Fixed: crop-stick interactions with Crops NH and the watering can
- #170 Added ExtraUtilsCompat module to detect and prevent healing axe log-stripping behavior when in offhand. - @sbancuz
- Added: ExtraUtilsCompat compatibility layer
- Closes GTNH#23556
Bug Fixes
- #196 MixinMinecraft now skips offhand priority and fallback for main hand items in the new synced config array, via Backhand.doesMainhandUseStopOffhandFallback. A new MixinEntityAspectOrb wraps isWandInHotbarWithRoom so an offhand ItemWandCasting with room for the vis is accepted. The Et Futurum dependency is switched to the GTNH build. - @Algent
- Added: mainhandUseStopsOffhandFallback config list, offhand wand support for Thaumcraft vis orbs
- Fixed: Offhand actions triggering twice, Inventory/GUI closing when using items with inventory space, Dislocator shift right-click firing twice with an offhand item, Matter Manipulator not working with an item in the offhand, Thaumcraft wand not taking vis orbs from the offhand
- Closes GTNH#20627, GTNH#21886, GTNH#21923, GTNH#22157, #164
- #194 New late mixin MixinInventoryBrewBag on Witchery's ItemBrewBag.InventoryBrewBag uses ModifyExpressionValue on getHeldItem in hasInventory and createInventory to return the offhand brew bag when the main hand is not one. Adds a WITCHERY TargetedMod, a Mixins entry and a Witchery compileOnly dependency, and bumps the jetbrains annotations version. - @Lyfts
- Fixed: Crash using Witchery brew bag from offhand
- Closes GTNH#25713
- #192 MixinMinecraft stores whether the block right-click event was cancelled in a new field. If it was, func_147121_ag falls back to a plain item use for that hand and returns instead of continuing to the other hand. - @Algent
- Fixed: AE2 memory card not working with a Healing Axe in the offhand, Main hand interactions firing twice when a mod cancels the right-click
- Closes GTNH#25739
- #189 Refined container interaction logic in BackhandUtils, MixinEntityPlayer, MixinEntityLivingBase, MixinNetHandlerPlayServer, and MixinOpenGuiHandler to properly validate container state and prevent item duplication/void scenarios during offhand swaps and container opens. - @Algent
- Fixed: Backhand-Forestry backpack duping, Focus pouch item duping, General container dupe/void on offhand interaction
- Closes Dupes-Exploits-GTNH#206, Dupes-Exploits-GTNH#275
- #180 MixinContainerExtendedInventory changes the slot Y position passed to the armor slot constructor from 61 to 62. - @Ranzuu
- Fixed: Galacticraft inventory armor slot misalignment
- Closes GTNH#24562
- #178 Modified MixinRenderPlayer to copy held item and animation state properties from the main player model to custom armor models returned by ForgeHooksClient.getArmorModel(). - @Luca-Guettinger
- Fixed: Offhand item clipping through custom armor
- Closes GTNH#24181
- #175 MixinNetHandlerPlayServer adds a ModifyExpressionValue on InventoryPlayer.getHotbarSize in processCreativeInventoryAction, returning one more so the offhand slot is accepted. MixinGuiContainerCreative only gets a whitespace change. - @Ranzuu
- Fixed: Creative inventory Destroy Item did not clear the offhand slot
- Closes GTNH#20461
- #174 ExtraUtilsCompat.onPlayerInteract now returns early unless the event is RIGHT_CLICK_BLOCK from the offhand, and cancels only when the stack is an ItemHealingAxe and StrippedLogRegistry.hasLog matches the target block and metadata. - @Caedis
- Fixed: Healing Axe in offhand made it impossible to right-click items and blocks
- Closes #171
- #169 ClientEventHandler.renderHotbarOverlay adds an isCanceled check, since the handler subscribes with receiveCanceled = true. - @Eldrinn-Elantey
- Fixed: offhand slot shown while hotbar is hidden
- #168 MixinGuiToolConfig now extends GUIBase from com.brandon3055.draconicevolution.client.utils.guicomponents. The BrandonsCore compileOnly dependency is removed and other dependency versions are bumped in dependencies.gradle. - @Alexdoru
- Removed: BrandonsCore compile dependency
- Fixed: Draconic Evolution tool config mixin after BrandonsCore merge
- #161 ItemRendererHooks.renderOffhandReturn uses the itemRenderer's itemToRender for both hands instead of the currently held stacks, and reorders the empty-offhand checks. - @leumasme
- Fixed: offhand arm flashing during item switch, offhand item vanishing instead of fading out
- Closes #159
Contributors
Everyone who authored, reviewed or co-authored a change on this page, with how many of them:
@Caedis (5), @Algent (4), @Lyfts (4), @Ranzuu (3), @Alexdoru (2), @Eldrinn-Elantey (2), @0hwx (1), @C0bra5 (1), @Ethryan (1), @koolkrafter5 (1), @leumasme (1), @Luca-Guettinger (1), @sbancuz (1), @tiffit (1), @UltraProdigy (1)