diff --git a/src/main/java/com/shibamilk/fasterminecart/mixin/entity/AbstractMinecartMixin.java b/src/main/java/com/shibamilk/fasterminecart/mixin/entity/AbstractMinecartMixin.java index 009ea82..0c4e81a 100644 --- a/src/main/java/com/shibamilk/fasterminecart/mixin/entity/AbstractMinecartMixin.java +++ b/src/main/java/com/shibamilk/fasterminecart/mixin/entity/AbstractMinecartMixin.java @@ -4,19 +4,31 @@ import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.vehicle.AbstractMinecart; +import net.minecraft.world.entity.vehicle.VehicleEntity; import net.minecraft.world.level.Level; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Overwrite; +import org.spongepowered.asm.mixin.*; +import org.spongepowered.asm.mixin.gen.Invoker; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.ModifyVariable; +import org.spongepowered.asm.mixin.injection.Redirect; + +import java.lang.annotation.Target; @Mixin(AbstractMinecart.class) -public abstract class AbstractMinecartMixin extends Entity { +public abstract class AbstractMinecartMixin extends Entity +{ public AbstractMinecartMixin(EntityType type, Level level) { super(type, level); } - + /** + * @author ChoccyMilch + * @reason Trying to see if I can make mine carts faster. + */ @Overwrite protected double getMaxSpeed() { - return (this.isInWater() ? 40.0D : 80) / 20.0D; + return (this.isInWater() ? 40.0D : 4.0D) / 8.0D; + } + } \ No newline at end of file diff --git a/src/main/resources/fasterminecart.mixins.json b/src/main/resources/fasterminecart.mixins.json index ee7509b..e94f7d8 100644 --- a/src/main/resources/fasterminecart.mixins.json +++ b/src/main/resources/fasterminecart.mixins.json @@ -3,12 +3,8 @@ "minVersion": "0.8", "package": "com.shibamilk.fasterminecart.mixin", "compatibilityLevel": "JAVA_17", - "overwrites": { - "conformVisibility": true, - "requireAnnotations": false - }, "mixins": [ - "entity.AbstractMinecartMixin.java" + "entity.AbstractMinecartMixin" ], "client": ["entity.AbstractMinecartMixin"], "server": ["entity.AbstractMinecartMixin"],