diff --git a/LICENSE b/LICENSE index d7121c8..0b72c32 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,21 @@ -Copyright (C) 2021-2022 FoxStudios \ No newline at end of file +MIT License + +Copyright (c) 2021 FoxStudios + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 7723b6e..f105e6e 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,7 @@ TODO: add a list of features ### Can I use this on a Vanilla server? Yeah sure. FoxClient is 100% client side and doesn't require anything to be installed on the server. -###### Copyright (C) 2022 FoxStudios \ No newline at end of file +### Is there gonna be a forge version? +NO [here's why](https://v.foxes4life.net/trol.png) + +###### Copyright (C) 2022 FoxStudios diff --git a/src/main/java/net/foxes4life/foxclient/Main.java b/src/main/java/net/foxes4life/foxclient/Main.java index 3592194..48f45f3 100644 --- a/src/main/java/net/foxes4life/foxclient/Main.java +++ b/src/main/java/net/foxes4life/foxclient/Main.java @@ -41,6 +41,7 @@ void initConfig () { KonfigCategory misc = new KonfigCategory("misc"); misc.addEntry("discord-rpc", true); misc.addEntry("discord-rpc-show-ip", true); + misc.addEntry("smoothzoom", true); KonfigCategory eastereggs = new KonfigCategory("eastereggs"); eastereggs.addEntry("owo", false); diff --git a/src/main/java/net/foxes4life/foxclient/util/ZoomUtils.java b/src/main/java/net/foxes4life/foxclient/util/ZoomUtils.java index d39bc11..a379c1f 100644 --- a/src/main/java/net/foxes4life/foxclient/util/ZoomUtils.java +++ b/src/main/java/net/foxes4life/foxclient/util/ZoomUtils.java @@ -1,6 +1,7 @@ package net.foxes4life.foxclient.util; import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper; +import net.foxes4life.foxclient.Main; import net.minecraft.client.MinecraftClient; import net.minecraft.client.option.KeyBinding; import net.minecraft.util.math.MathHelper; @@ -38,6 +39,8 @@ public static void smoothCam () { } public static void calculateZoom(CallbackInfoReturnable cir) { - ZoomUtils.actualZoomLevel = MathHelper.lerp(0.05f, ZoomUtils.actualZoomLevel, ZoomUtils.currentZoomLevel); + ZoomUtils.actualZoomLevel = (boolean)Main.konfig.get("misc", "smoothzoom") ? + MathHelper.lerp(0.05f, ZoomUtils.actualZoomLevel, ZoomUtils.currentZoomLevel) : + ZoomUtils.currentZoomLevel; } }