This commit is contained in:
Babbaj 2019-07-22 16:51:09 -04:00
parent fe54372a53
commit 61147536e5
No known key found for this signature in database
GPG Key ID: 48FD0BEFD63C8E3F
2 changed files with 1 additions and 10 deletions

View File

@ -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()));
});
} }
} }

View File

@ -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;
} }