Skip to content

Commit

Permalink
1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Feb 17, 2024
1 parent 06ef795 commit d3b8247
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
12 changes: 6 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[versions]
minecraft = "1.19.4"
minecraft = "1.19.3"

# Platform libraries

fabric_loader = "0.15.6"
fabric_api = "0.75.3+1.19.4"
fabric_api = "0.76.1+1.19.3"

forge = "1.19.4-45.2.8"
forge = "1.19.3-44.1.23"

# neoforge = "20.4.160-beta"

quilt_loader = "0.23.1"
quilt_standard_libraries = "5.0.0-beta.11+1.19.4"
quilt_standard_libraries = "4.0.0-beta.13+1.19.3"

# Third-party libraries

modmenu = "6.1.0"
cloth_config = "10.1.117"
modmenu = "5.1.0"
cloth_config = "9.1.104"

mixinextras = "0.3.5"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import me.shedaniel.clothconfig2.impl.builders.SubCategoryBuilder;
import net.minecraft.ChatFormatting;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.CommonComponents;
import net.minecraft.network.chat.Component;
import net.minecraft.sounds.SoundSource;

Expand Down Expand Up @@ -43,7 +42,7 @@ public static Screen genConfigScreen(Screen parent) {
);

general.addEntry(
entryBuilder.startTextDescription(CommonComponents.SPACE).build()
entryBuilder.startTextDescription(Component.literal(" ")).build()
);

general.addEntry(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
package dynamic_fps.impl.mixin;

import java.util.Deque;

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;
import org.spongepowered.asm.mixin.injection.Redirect;

import dynamic_fps.impl.DynamicFPSMod;
import net.minecraft.client.gui.components.toasts.Toast;
import net.minecraft.client.gui.components.toasts.ToastComponent;

@Mixin(ToastComponent.class)
public class ToastComponentMixin {
@Inject(method = "freeSlots", at = @At("HEAD"), cancellable = true)
private void hasFreeSlots(CallbackInfoReturnable<Integer> callbackInfo) {
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Ljava/util/Deque;isEmpty()Z"))
private boolean onQueueIsEmpty(Deque<Toast> queued) {
if (!DynamicFPSMod.shouldShowToasts()) {
callbackInfo.setReturnValue(0);
return true;
} else {
return queued.isEmpty();
}
}
}
2 changes: 1 addition & 1 deletion platforms/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"depends": {
"fabricloader": ">=0.15.0",
"minecraft": "=1.19.4",
"minecraft": "=1.19.3",
"mixinextras": ">=0.3.2",
"fabric-resource-loader-v0": "*",
"fabric-lifecycle-events-v1": "*"
Expand Down
2 changes: 1 addition & 1 deletion platforms/forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ file="META-INF/accesstransformer.cfg"
[[dependencies.dynamic_fps]]
modId = "minecraft"
mandatory = true
versionRange = "[1.19.4]"
versionRange = "[1.19.3]"
ordering = "NONE"
side = "CLIENT"

Expand Down
2 changes: 1 addition & 1 deletion platforms/quilt/src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
{
"id": "minecraft",
"versions": "=1.19.4"
"versions": "=1.19.3"
},
{
"id": "mixinextras",
Expand Down

0 comments on commit d3b8247

Please sign in to comment.