ok
This commit is contained in:
parent
fe54372a53
commit
61147536e5
@ -18,7 +18,6 @@
|
|||||||
package baritone.utils.schematic.schematica;
|
package baritone.utils.schematic.schematica;
|
||||||
|
|
||||||
import baritone.api.utils.ISchematic;
|
import baritone.api.utils.ISchematic;
|
||||||
import com.github.lunatrius.core.util.math.MBlockPos;
|
|
||||||
import com.github.lunatrius.schematica.Schematica;
|
import com.github.lunatrius.schematica.Schematica;
|
||||||
import com.github.lunatrius.schematica.proxy.ClientProxy;
|
import com.github.lunatrius.schematica.proxy.ClientProxy;
|
||||||
import net.minecraft.util.Tuple;
|
import net.minecraft.util.Tuple;
|
||||||
@ -40,10 +39,7 @@ public enum SchematicaHelper {
|
|||||||
|
|
||||||
public static Optional<Tuple<ISchematic, BlockPos>> getOpenSchematic() {
|
public static Optional<Tuple<ISchematic, BlockPos>> getOpenSchematic() {
|
||||||
return Optional.ofNullable(ClientProxy.schematic)
|
return Optional.ofNullable(ClientProxy.schematic)
|
||||||
.map(world -> {
|
.map(world -> new Tuple<>(new SchematicAdapter(world), world.position));
|
||||||
MBlockPos poz = world.position;
|
|
||||||
return new Tuple<>(new SchematicAdapter(world), new BlockPos(poz.getX(), poz.getY(), poz.getZ()));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -18,12 +18,7 @@
|
|||||||
package com.github.lunatrius.schematica.proxy;
|
package com.github.lunatrius.schematica.proxy;
|
||||||
|
|
||||||
import com.github.lunatrius.schematica.client.world.SchematicWorld;
|
import com.github.lunatrius.schematica.client.world.SchematicWorld;
|
||||||
import net.minecraft.util.EnumFacing;
|
|
||||||
|
|
||||||
public class ClientProxy extends CommonProxy {
|
public class ClientProxy extends CommonProxy {
|
||||||
public static SchematicWorld schematic;
|
public static SchematicWorld schematic;
|
||||||
|
|
||||||
public static EnumFacing orientation;
|
|
||||||
public static EnumFacing axisFlip;
|
|
||||||
public static EnumFacing axisRotation;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user