Compare commits
3 Commits
8808df1cf1
...
ee448ae34d
Author | SHA1 | Date | |
---|---|---|---|
ee448ae34d | |||
69df0e5850 | |||
4988a91e70 |
@ -7,7 +7,6 @@ import net.minecraft.client.option.KeyBinding;
|
|||||||
import net.minecraft.client.util.InputUtil;
|
import net.minecraft.client.util.InputUtil;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import org.lwjgl.glfw.GLFW;
|
import org.lwjgl.glfw.GLFW;
|
||||||
import wtf.hak.survivalfabric.utils.MathUtils;
|
|
||||||
|
|
||||||
public class Zoom {
|
public class Zoom {
|
||||||
|
|
||||||
@ -47,6 +46,5 @@ public class Zoom {
|
|||||||
} else if (zoomFov > 110) {
|
} else if (zoomFov > 110) {
|
||||||
ZOOM_STEP = Math.round((110 - INITIAL_ZOOM) / ZOOM_STEP_VALUE);
|
ZOOM_STEP = Math.round((110 - INITIAL_ZOOM) / ZOOM_STEP_VALUE);
|
||||||
}
|
}
|
||||||
MinecraftClient.getInstance().player.sendMessage(Text.literal(ZOOM_STEP + ""), true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|||||||
import static wtf.hak.survivalfabric.config.client.ClientConfigManager.getConfig;
|
import static wtf.hak.survivalfabric.config.client.ClientConfigManager.getConfig;
|
||||||
|
|
||||||
@Mixin(value = BackgroundRenderer.class, priority = 910)
|
@Mixin(value = BackgroundRenderer.class, priority = 910)
|
||||||
public abstract class BackgroundRendererMixin {
|
public class BackgroundRendererMixin {
|
||||||
|
|
||||||
@Unique
|
@Unique
|
||||||
private static final Fog EMPTY_FOG = new Fog(-8.0f, 1_000_000.0F, FogShape.CYLINDER, 0, 0, 0, 0);
|
private static final Fog EMPTY_FOG = new Fog(-8.0f, 1_000_000.0F, FogShape.CYLINDER, 0, 0, 0, 0);
|
||||||
|
@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.At;
|
|||||||
import wtf.hak.survivalfabric.features.Zoom;
|
import wtf.hak.survivalfabric.features.Zoom;
|
||||||
|
|
||||||
@Mixin(GameRenderer.class)
|
@Mixin(GameRenderer.class)
|
||||||
public abstract class GameRendererMixin {
|
public class GameRendererMixin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modify Zoom FOV
|
* Modify Zoom FOV
|
||||||
|
@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.ModifyArg;
|
|||||||
import wtf.hak.survivalfabric.config.ConfigManager;
|
import wtf.hak.survivalfabric.config.ConfigManager;
|
||||||
|
|
||||||
@Mixin(ServerPlayNetworkHandler.class)
|
@Mixin(ServerPlayNetworkHandler.class)
|
||||||
public abstract class ServerPlayNetworkHandlerMixin {
|
public class ServerPlayNetworkHandlerMixin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modify quit message
|
* Modify quit message
|
||||||
|
@ -10,7 +10,7 @@ import wtf.hak.survivalfabric.commands.SpectatorCommand;
|
|||||||
import wtf.hak.survivalfabric.config.ConfigManager;
|
import wtf.hak.survivalfabric.config.ConfigManager;
|
||||||
|
|
||||||
@Mixin(ServerPlayerEntity.class)
|
@Mixin(ServerPlayerEntity.class)
|
||||||
public abstract class ServerPlayerEntityMixin {
|
public class ServerPlayerEntityMixin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change player list name if enabled
|
* Change player list name if enabled
|
||||||
|
Reference in New Issue
Block a user