From 983a3a700e19570c4c80410d25465f8cd867276f Mon Sep 17 00:00:00 2001 From: Pascal Roeleven Date: Sat, 13 Jun 2020 12:31:58 +0200 Subject: [PATCH] Change name of arguments These names are switched around in the source code but are also used reversed. Name the arguments how they should be named in the first place. --- .../mineshotrevived/util/reflection/PrivateAccessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/nl/pascalroeleven/minecraft/mineshotrevived/util/reflection/PrivateAccessor.java b/src/main/java/nl/pascalroeleven/minecraft/mineshotrevived/util/reflection/PrivateAccessor.java index 575959f..95f1df7 100644 --- a/src/main/java/nl/pascalroeleven/minecraft/mineshotrevived/util/reflection/PrivateAccessor.java +++ b/src/main/java/nl/pascalroeleven/minecraft/mineshotrevived/util/reflection/PrivateAccessor.java @@ -33,9 +33,9 @@ default void framebufferSizeUpdate(Minecraft mc, int framebufferWidth, int frame } } - default void setDirection(Minecraft mc, float pitchIn, float yawIn) { + default void setDirection(Minecraft mc, float yawIn, float pitchIn) { try { - setDirection.invoke(mc.gameRenderer.getActiveRenderInfo(), pitchIn, yawIn); + setDirection.invoke(mc.gameRenderer.getActiveRenderInfo(), yawIn, pitchIn); } catch (Exception ex) { L.error("setDirection() failed", ex); }