23w43a
This commit is contained in:
1 parent
1a7e8b6875
commit
382706a6df
23 files changed
+58
-224
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(Minecraft.class)
|
||||
public class Minecraft_tickMixin
|
||||
{
|
||||
@Inject(method = "getTickTargetMillis", at = @At("HEAD"), cancellable = true)
|
||||
private void onGetTickTargetMillis(final float f, final CallbackInfoReturnable<Float> cir)
|
||||
{
|
||||
if (!CarpetSettings.smoothClientAnimations) {
|
||||
cir.setReturnValue(f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user