mirror of https://github.com/cabaletta/baritone
Merge pull request #4560 from rfresh2/litematica-fix-1.19.4
fix litematica remapping error
This commit is contained in:
commit
497fb74829
|
@ -29,6 +29,7 @@ import fi.dy.masa.litematica.world.WorldSchematic;
|
|||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.Vec3i;
|
||||
import net.minecraft.util.Tuple;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.block.Mirror;
|
||||
import net.minecraft.world.level.block.Rotation;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
@ -98,7 +99,7 @@ public final class LitematicaHelper {
|
|||
int minY = Integer.MAX_VALUE;
|
||||
int minZ = Integer.MAX_VALUE;
|
||||
HashMap<Vec3i, StaticSchematic> subRegions = new HashMap<>();
|
||||
WorldSchematic schematicWorld = SchematicWorldHandler.getSchematicWorld();
|
||||
Level schematicWorld = SchematicWorldHandler.getSchematicWorld();
|
||||
for (Map.Entry<String, SubRegionPlacement> entry : placement.getEnabledRelativeSubRegionPlacements().entrySet()) {
|
||||
SubRegionPlacement subPlacement = entry.getValue();
|
||||
Vec3i pos = transform(subPlacement.getPos(), placement.getMirror(), placement.getRotation());
|
||||
|
@ -152,4 +153,4 @@ public final class LitematicaHelper {
|
|||
return name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue