cabaletta / baritone

google maps for block game
GNU Lesser General Public License v3.0
7.28k stars 1.45k forks source link

fix litematica remapping error #4560

Closed rfresh2 closed 1 day ago

rfresh2 commented 4 days ago

fixes unimined not remapping schematicWorld.getBlockState to intermediary.

this PR should be merged forward, this issue is also present in 1.20.5-1.21.x

stacktrace:

[00:09:45] [Render thread/INFO]: [CHAT] [Baritone] > litematica
[00:09:45] [Render thread/INFO]: [CHAT] [Baritone] An unhandled exception occurred. The error is in your game's log, please report this at https://github.com/cabaletta/baritone/issues
...
[00:09:45] [Render thread/INFO]: [STDERR]: Caused by: java.lang.NoSuchMethodError: 'net.minecraft.class_2680 fi.dy.masa.litematica.world.WorldSchematic.getBlockState(net.minecraft.class_2338)'
[00:09:45] [Render thread/INFO]: [STDERR]:  at baritone.utils.schematic.litematica.LitematicaHelper.getSchematic(LitematicaHelper.java:119)
[00:09:45] [Render thread/INFO]: [STDERR]:  at baritone.process.BuilderProcess.buildOpenLitematic(BuilderProcess.java:237)
[00:09:45] [Render thread/INFO]: [STDERR]:  at baritone.command.defaults.LitematicaCommand.execute(LitematicaCommand.java:39)
[00:09:45] [Render thread/INFO]: [STDERR]:  at baritone.command.manager.CommandManager$ExecutionWrapper.execute(CommandManager.java:143)
IVIPOWER commented 3 days ago

what do i do to fix it? sorry im clueless

ZacSharp commented 2 days ago

@leijurv doesn't the release you just made have the bug this pr fixes?