Skip to content

Commit

Permalink
Fix create forge not working
Browse files Browse the repository at this point in the history
  • Loading branch information
StewStrong committed Oct 27, 2024
1 parent c19bc11 commit 91091b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion forge/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cloth_config_version = 11.1.106

#Compat
# https://github.com/Creators-of-Create/Create/wiki/Depending-on-Create
create_version = 0.5.1.e-22
create_version = 0.5.1.e-24
flywheel_version = 0.6.10-7
registrate_version = MC1.20-1.3.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.valkyrienskies.mod.common.VSGameUtilsKt;
import org.valkyrienskies.mod.common.util.VectorConversionsMCKt;

@Mixin(value = TrackBlockOutline.class, remap = false)
@Mixin(value = TrackBlockOutline.class)
public class MixinTrackBlockOutline {
@Unique
private static Vec3 valkyrienskies$cameraVec3;
Expand All @@ -37,7 +37,7 @@ public class MixinTrackBlockOutline {
@Unique
private static Vec3 valkyrienskies$angles;

@Inject(method = "drawCurveSelection", at = @At(value = "INVOKE", target = "Lcom/simibubi/create/content/trains/track/TrackBlockOutline$BezierPointSelection;angles()Lnet/minecraft/world/phys/Vec3;"), locals = LocalCapture.CAPTURE_FAILHARD)
@Inject(method = "drawCurveSelection", at = @At(value = "INVOKE", target = "Lcom/simibubi/create/content/trains/track/TrackBlockOutline$BezierPointSelection;angles()Lnet/minecraft/world/phys/Vec3;"), locals = LocalCapture.CAPTURE_FAILHARD, remap = false)
private static void harvestDrawCurveSelection(final PoseStack ms, final MultiBufferSource buffer, final Vec3 camera,
final CallbackInfo ci, final Minecraft mc,
final BezierPointSelection result, final VertexConsumer vb, final Vec3 vec) {
Expand All @@ -48,7 +48,9 @@ private static void harvestDrawCurveSelection(final PoseStack ms, final MultiBuf
@ModifyArg(method = "drawCurveSelection",
at = @At(value = "INVOKE",
target = "Lcom/simibubi/create/content/trains/track/TrackBlockOutline;renderShape(Lnet/minecraft/world/phys/shapes/VoxelShape;Lcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;Ljava/lang/Boolean;)V"),
index = 1)
index = 1,
remap = false
)
private static PoseStack redirectTransformStackTranslate(final PoseStack ms) {

final Level level = Minecraft.getInstance().level;
Expand Down

0 comments on commit 91091b2

Please sign in to comment.