Update to 1.20.4
This commit is contained in:
+32
-3
@@ -1,3 +1,32 @@
|
||||
# Project exclude paths
|
||||
/.gradle/
|
||||
/build/
|
||||
# eclipse
|
||||
bin
|
||||
*.launch
|
||||
.settings
|
||||
.metadata
|
||||
.classpath
|
||||
.project
|
||||
|
||||
# idea
|
||||
out
|
||||
*.ipr
|
||||
*.iws
|
||||
*.iml
|
||||
.idea
|
||||
|
||||
# gradle
|
||||
build
|
||||
.gradle
|
||||
|
||||
# other
|
||||
/runtime/
|
||||
eclipse
|
||||
run
|
||||
*.bak
|
||||
|
||||
# Files from Forge MDK
|
||||
forge*changelog.txt
|
||||
|
||||
# version files
|
||||
/HeadlessMC/
|
||||
/logs/
|
||||
/plugins/
|
||||
|
||||
+4
-4
@@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G
|
||||
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.20.1
|
||||
yarn_mappings=1.20.1+build.10
|
||||
loader_version=0.14.21
|
||||
minecraft_version=1.20.4
|
||||
yarn_mappings=1.20.4+build.1
|
||||
loader_version=0.15.0
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.0-SNAPSHOT
|
||||
@@ -14,4 +14,4 @@ org.gradle.jvmargs=-Xmx1G
|
||||
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.90.7+1.20.1
|
||||
fabric_version=0.91.1+1.20.4
|
||||
|
||||
@@ -91,13 +91,13 @@ public class OyVeyGui extends Screen {
|
||||
return super.mouseReleased(mouseX, mouseY, releaseButton);
|
||||
}
|
||||
|
||||
@Override public boolean mouseScrolled(double mouseX, double mouseY, double dWheel) {
|
||||
if (dWheel < 0) {
|
||||
@Override public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {
|
||||
if (verticalAmount < 0) {
|
||||
this.components.forEach(component -> component.setY(component.getY() - 10));
|
||||
} else if (dWheel > 0) {
|
||||
} else if (verticalAmount > 0) {
|
||||
this.components.forEach(component -> component.setY(component.getY() + 10));
|
||||
}
|
||||
return super.mouseScrolled(mouseX, mouseY, dWheel);
|
||||
return super.mouseScrolled(mouseX, mouseY, horizontalAmount, verticalAmount);
|
||||
}
|
||||
|
||||
@Override public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
|
||||
|
||||
@@ -36,7 +36,7 @@ public class MixinClientConnection {
|
||||
}
|
||||
|
||||
@Inject(method = "sendImmediately", at = @At("HEAD"), cancellable = true)
|
||||
private void sendImmediately(Packet<?> packet, PacketCallbacks callbacks, CallbackInfo ci) {
|
||||
private void sendImmediately(Packet<?> packet, PacketCallbacks callbacks, boolean flush, CallbackInfo ci) {
|
||||
if (this.side != NetworkSide.CLIENTBOUND) return;
|
||||
try {
|
||||
PacketEvent.Send event = new PacketEvent.Send(packet);
|
||||
|
||||
@@ -18,7 +18,7 @@ public class MixinInGameHud {
|
||||
|
||||
@Inject(method = "render", at = @At("RETURN"))
|
||||
public void render(DrawContext context, float tickDelta, CallbackInfo ci) {
|
||||
if(MinecraftClient.getInstance().options.debugEnabled) return;
|
||||
if(MinecraftClient.getInstance().options.getReducedDebugInfo().getValue()) return;
|
||||
RenderSystem.setShaderColor(1, 1, 1, 1);
|
||||
|
||||
RenderSystem.disableDepthTest();
|
||||
|
||||
@@ -11,7 +11,7 @@ import static me.alpha432.oyvey.util.traits.Util.EVENT_BUS;
|
||||
|
||||
@Mixin(Keyboard.class)
|
||||
public class MixinKeyboard {
|
||||
@Inject(method = "onKey", at = @At(value = "INVOKE", target = "net/minecraft/client/util/InputUtil.isKeyPressed(JI)Z", ordinal = 5), cancellable = true)
|
||||
@Inject(method = "onKey", at = @At("HEAD"), cancellable = true)
|
||||
private void onKey(long windowPointer, int key, int scanCode, int action, int modifiers, CallbackInfo ci) {
|
||||
KeyEvent event = new KeyEvent(key);
|
||||
EVENT_BUS.post(event);
|
||||
|
||||
Reference in New Issue
Block a user