Skip to content

Commit

Permalink
Not making instance final or private. Fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Jan 18, 2024
1 parent 592ca43 commit 3d6f87a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public abstract class FirstPersonModelCore extends FirstPersonBase {

@Getter
private LogicHandler logicHandler;
public static FirstPersonModelCore instance = new Fir;
public static FirstPersonModelCore instance;
private boolean isHeld = false;
private KeyMapping keyBinding = new KeyMapping("key.firstperson.toggle", 295, "Firstperson");
private boolean lateInit = true;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/dev/tr7zw/firstperson/LogicHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public boolean preventFirstperson() {
if (client.player.getSwimAmount(1f) != 0 && !isCrawlingOrSwimming(client.player))
return true;
// spotless:off
// #if MC >= 11700
//#if MC >= 11700
if (client.player.isScoping())
return true;
// #endif
// spotless:on
//#endif
//spotless:on
return false;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//$$
//$$ @SubscribeEvent
//$$ public void onRender(RenderHandEvent e) {
//$$ if(FirstPersonModelCore.enabled && !FirstPersonModelCore.instance.getLogicHandler().showVanillaHands()) {
//$$ if(FirstPersonModelCore.instance.isEnabled() && !FirstPersonModelCore.instance.getLogicHandler().showVanillaHands()) {
//$$ e.setCanceled(true);
//$$ }
//$$ }
Expand Down

0 comments on commit 3d6f87a

Please sign in to comment.