HybridFix (混合修复)
Provide a bunch of bugfixes, optimizations and utilities for Forge+Bukkit server and client environments.
Fixed issues
Forge-Bukkit
- Bukkit plugins cannot handle some mod explosions(e.g., Tinkers' Construct EFLN)
- Bridge some Forge events to Bukkit
Forge
- (Universal) Fix Forge JarDiscoverer attempting to read
module-info.classand other multi-release classes. - (Server) Fix
Outdated servershowing in ping before server fully boots.
Mods
Common
- Replace brittle asm transformer patches of Quark with mixins
- Fix Swet AI control of Aether Legacy
Client
- Replace expensive reflection usages in Industrial Craft 2 with direct calls
Server
- Simple Difficulty, ToughAsNails(And any other similar mods) thirst is not getting reset on player respawn(Luohuayu/CatServer#536)(MohistMC/Mohist#2905)
- Ring dupe bug in The Betweenlands mod(Luohuayu/CatServer#204)
- Simulate vanilla player respawn, most dupe bugs on player death should be fixed
- Fix Twilight Forest saplings can bypass the anti-grief plugin protection bug
- Fix Twilight Forest entities(e.g. Naga) can break blocks in protected areas
- Fix Twilight Forest Chain with Block can break blocks in protected areas
- Fix Thaumcraft 6 taint can spread into protected areas
- Fix Thaumcraft 6 flux rift can break blocks in protected areas
- Fix trait effects in Tinkers' Construct can bypass damage protection
- Fix So Many Enchantments can disarm players in protected areas
- Fix Botania Ring of Loki can bypass grief protection
- Fix Botania MineLens can bypass grief protection
- Fix Botania Rannuncarpus can bypass grief protection
- Fix Industrial Craft 2 miners can break blocks in protected areas
- Fix Industrial Craft 2 explosives can break blocks in protected areas
- Fix Draconic Evolution ChaosCrystal can break blocks in protected areas
- Fix TechReborn(RebornCore) explosions can break blocks in protected areas
- Offer events to Applied Energistics 2 Spatial Pylon to prevent some unpermitted griefing
- Fix TechGuns explosion can break blocks in protected areas
- Add entity blacklist/whitelist to Applied Energistics 2 Spatial Pylon
- Fix webs of InfernalMobs can spawn in protected areas
- Fix EpicSiegeMod mob AIs can grief in protected areas
- Disable recipe of Blackhole Controller (Deprecated) in Industrial Foregoing
- Fix Witchery spells can bypass damage protection
- Auto modify Actually Additions' config to make it fit the server environment
- Prevent Mekanism Digital Miner from mining tile entities
Features
- Auto overrides Mohist's crappy built-in explosion handling with our own method.
- Bridge Forge permission processing to Bukkit.
- Skip firing event if no listeners registered.
- Disable Timings for lower performance overhead.
- Compatibility first, shouldn't break any mods/plugins.
- Built Bukkit plugin into the mod, offers utilities to server owners.
- Enhance compatibility with mod FakePlayers.
- Offer more or less useful apis for plugin developers to interact with Forge mods easily.
- Extensive APIs for mod developers to maintain compatibility with hybrid servers easily.
- General CraftBukkit performance improvements.
- Auto deobfuscate plugin stacktraces when Censored ASM is installed for easier debugging.
- Cross ClassLoader access, make Forge mods can easily interact with Bukkit plugins. (Details)
- Bukkit APIs backported from modern version.
- Builtin plugin ASM patcher, compatible with your favourite plugins.
- Bukkit plugin mixin support, allows you to inject code into plugins via mods. (Experimental) (Docs)
- Extend Forge's error recovery system (
removeErroringEntitiesandremoveErroringTileEntities), notify server operators when errors occurred. - Guard player ticking process, kick player instead of directly crash.
- Fix Forge bugs that affect server play experience.
- (Universal) Optimize entity AI for faster nearest target lookup.
Configuration file is under ${minecraftDir}/config/hybridfix.cfg
How To (Server Admins)
Download HybridFix and its dependencies(MixinBooter and ConfigAnyTime) from CurseForge, drop HybridFix into ${minecraftDir}/mods folder.
HybridFix can be also installed on the client, some client-side fixes and optimizations will apply.
How To (Developers)
If you are developing mods, you can import HybridFix from curse maven:
Gradle(Groovy DSL):
implementation fg.deobf("curse.maven:hybridfix-1166614:{latest_artifact_id}")
If you are developing plugins, you can import HybridFix jar directly:
Maven:
<dependency>
<groupId>io.wdsj</groupId>
<artifactId>hybridfix</artifactId>
<version>{latest_version}</version>
<scope>system</scope>
<systemPath>PATH-TO-JAR</systemPath>
</dependency>
Gradle(Groovy DSL):
compileOnly files("PATH-TO-JAR")
APIs are located at io.wdsj.hybridfix.api and io.wdsj.hybridfix.duck.api package.
Plugin Hooks
Thanks to HybridFix internal plugin, we can hook into plugins from Forge side to provide more fixes.
Currently patched plugins:
- Residence(SpigotMC)(GitHub)
- WorldGuard(BukkitDev)(GitHub)
- Citizens(GitHub)
Plugin ASM patcher
HybridFix uses ASM to inject into plugin classes dynamically at runtime to resolve plugin compatibility problems with Forge+Bukkit environment.
Currently supported plugins:
- Residence: Fixes compatibility with Residence 6.0.0.0+.
- Universal: Redirects InventoryView INVOKEINTERFACE call to INVOKEVIRTUAL.
About FakePlayers
HybridFix utilizes Forge FakePlayer to fix some grief bugs, the naming logic is [modid-ClassName].
For example, the botania rannuncarpus patch is using the fake player with name [botania-SubTileRannuncarpus].
You can add these names into whitelist/blacklist of your plugins to customize behavior.
Commands
/hybridfix dumpitem- Show details of the item holding in the hand./hybridfix dumpentity- Show details of the entity targeted./hybridfix dumpblock- Show details of the block targeted./hybridfix version- Show version info./hybridfix eraseentity- Forcibly remove targeted entity./mods- Like/plugins, show all loaded mods.
Permissions
hybridfix.command.use- Allow to access/hybridfixcommand.hybridfix.command.eraseentity.use- Allow to access/hybridfix eraseentitycommand.hybridfix.command.mods.use- Allow to access/modscommand.
Note: Commands and permissions are registered on Bukkit side, that means you can manage permissions with Bukkit permission plugins like LuckPerms.
License
This mod is licensed under LGPL-2.1.
Backported Bukkit classes are licensed under GPL-3.0.
Unless explicitly specified in the code, other parts are under LGPL-2.1.
The stripped MCP remapped CraftBukkit JAR in the repository is for development use only and not included in releases.
How to Install HybridFix (Mod)
HybridFix by Undefined_0721 is verified for Forge across Minecraft versions 1.12.2 (latest release: 2.3.0, file size: 787 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.12.2) and platform (Forge).
- Make sure you have the compatible loader or environment installed for Forge.
- Move the downloaded HybridFix file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Full Changelog**: https://github.com/HaHaWTH/HybridFix/compare/2.2.0...2.3.0
- Full Changelog**: https://github.com/HaHaWTH/HybridFix/compare/2.1.2...2.2.0
- Full Changelog**: https://github.com/HaHaWTH/HybridFix/compare/2.1.1...2.1.2
- Full Changelog**: https://github.com/HaHaWTH/HybridFix/compare/2.1.0...2.1.1
- Full Changelog**: https://github.com/HaHaWTH/HybridFix/compare/2.0.0...2.1.0
- Full Changelog**: https://github.com/HaHaWTH/HybridFix/compare/1.1.0...2.0.0
- Improve fakeplayer interoperability
- [Rewrite Draconic Evolution fix](https://github.com/HaHaWTH/HybridFix/commit/33042daadb6156e3360dcc32d9cfb109b847e5d2)
- [Health debugger](https://github.com/HaHaWTH/HybridFix/commit/ea4977e6a17573ca6e3fb0ba2e7ae4b4def6a6a3)
- [Actually Additions patch](https://github.com/HaHaWTH/HybridFix/commit/8f536eebdeddf71a598887056a52b659db47a0c9)
- [WorldGuard AE2 hook](https://github.com/HaHaWTH/HybridFix/commit/9d2ed527d7795fdb871ef17319f2e8dcc82c4fde)
- [Configurable TE snapshot creation](https://github.com/HaHaWTH/HybridFix/commit/d3da3d9e6ddffcd7cb6d01af05238e4bd3de70b3)
- [Paper extra api](https://github.com/HaHaWTH/HybridFix/commit/60b47236fd3a3919995fce20dc4a73dd990f3fe4)
- [LivingAttack bridge compat mode](https://github.com/HaHaWTH/HybridFix/commit/ba034d42707d4c76cff7d2b9d34743d68848c833)
- Spatial Pylon transistion entity blacklist
- InfernalMobs patch
- EpicSiege patch
- Thaumcraft Flux Rift patch
- /hybridfix eraseentity command
- LivingAttackEvent bukkit bridge
- Split classloader injection logic
- HybridFix Bukkit API
- Botania Rannuncarpus patch
- Bump minimum MixinBooter requirement to 10.1
- Extra BukkitAPI patches
- AntiXray SDK integration
- Dumpentity & dumpblock command
- Industrial Foregoing patch
- /mods command
- Patch Witchery symbol effects
- Configurable max drop count per tick
- Available on both Client & Server side
- Citizens hook
- Deobfuscate plugin stacktraces when CensoredASM is installed
### From version 1.0.0, HybridFix requires MixinBooter version 10.1 or higher.
More bug fixes