From 7df6f559a73ba92920fe6f2c8c5a8eae4ce11f76 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Mon, 21 Oct 2024 15:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=8C=96=E7=8E=A9=E5=AE=B6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/network/ModVariables.java | 69 ++++++++++--------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/src/main/java/net/mcreator/superbwarfare/network/ModVariables.java b/src/main/java/net/mcreator/superbwarfare/network/ModVariables.java index 0205306c9..80aa92da8 100644 --- a/src/main/java/net/mcreator/superbwarfare/network/ModVariables.java +++ b/src/main/java/net/mcreator/superbwarfare/network/ModVariables.java @@ -232,44 +232,45 @@ public class ModVariables { public Tag writeNBT() { CompoundTag nbt = new CompoundTag(); - nbt.putBoolean("zoom", zoom); - nbt.putBoolean("holdFire", holdFire); - nbt.putInt("rifle_ammo", rifleAmmo); - nbt.putInt("handgun_ammo", handgunAmmo); - nbt.putInt("shotgun_ammo", shotgunAmmo); - nbt.putInt("sniper_ammo", sniperAmmo); - nbt.putBoolean("bow_pull_hold", bowPullHold); - nbt.putBoolean("bow_pull", bowPull); - nbt.putBoolean("player_double_jump", playerDoubleJump); - nbt.putBoolean("tacticalSprint", tacticalSprint); - nbt.putInt("tacticalSprintTime", tacticalSprintTime); - nbt.putBoolean("tacticalSprintExhaustion", tacticalSprintExhaustion); - nbt.putBoolean("breath", breath); - nbt.putInt("breathTime", breathTime); - nbt.putBoolean("breathExhaustion", breathExhaustion); - nbt.putBoolean("edit", edit); + nbt.putBoolean("Zoom", zoom); + nbt.putBoolean("HoldFire", holdFire); + nbt.putInt("RifleAmmo", rifleAmmo); + nbt.putInt("HandgunAmmo", handgunAmmo); + nbt.putInt("ShotgunAmmo", shotgunAmmo); + nbt.putInt("SniperAmmo", sniperAmmo); + nbt.putBoolean("BowPullHold", bowPullHold); + nbt.putBoolean("BowPull", bowPull); + nbt.putBoolean("DoubleJump", playerDoubleJump); + nbt.putBoolean("TacticalSprint", tacticalSprint); + nbt.putInt("TacticalSprintTime", tacticalSprintTime); + nbt.putBoolean("TacticalSprintExhaustion", tacticalSprintExhaustion); + nbt.putBoolean("Breath", breath); + nbt.putInt("BreathTime", breathTime); + nbt.putBoolean("BreathExhaustion", breathExhaustion); + nbt.putBoolean("EditMode", edit); return nbt; } - public void readNBT(Tag Tag) { - CompoundTag nbt = (CompoundTag) Tag; - zoom = nbt.getBoolean("zoom"); - holdFire = nbt.getBoolean("holdFire"); - rifleAmmo = nbt.getInt("rifle_ammo"); - handgunAmmo = nbt.getInt("handgun_ammo"); - shotgunAmmo = nbt.getInt("shotgun_ammo"); - sniperAmmo = nbt.getInt("sniper_ammo"); - bowPullHold = nbt.getBoolean("bow_pull_hold"); - bowPull = nbt.getBoolean("bow_pull"); - playerDoubleJump = nbt.getBoolean("player_double_jump"); - tacticalSprint = nbt.getBoolean("tacticalSprint"); - tacticalSprintTime = nbt.getInt("tacticalSprintTime"); - tacticalSprintExhaustion = nbt.getBoolean("tacticalSprintExhaustion"); - breath = nbt.getBoolean("breath"); - breathTime = nbt.getInt("breathTime"); - breathExhaustion = nbt.getBoolean("breathExhaustion"); - edit = nbt.getBoolean("edit"); + public void readNBT(Tag tag) { + CompoundTag nbt = (CompoundTag) tag; + + zoom = nbt.getBoolean("Zoom"); + holdFire = nbt.getBoolean("HoldFire"); + rifleAmmo = nbt.getInt("RifleAmmo"); + handgunAmmo = nbt.getInt("HandgunAmmo"); + shotgunAmmo = nbt.getInt("ShotgunAmmo"); + sniperAmmo = nbt.getInt("SniperAmmo"); + bowPullHold = nbt.getBoolean("BowPullHold"); + bowPull = nbt.getBoolean("BowPull"); + playerDoubleJump = nbt.getBoolean("DoubleJump"); + tacticalSprint = nbt.getBoolean("TacticalSprint"); + tacticalSprintTime = nbt.getInt("TacticalSprintTime"); + tacticalSprintExhaustion = nbt.getBoolean("TacticalSprintExhaustion"); + breath = nbt.getBoolean("Breath"); + breathTime = nbt.getInt("BreathTime"); + breathExhaustion = nbt.getBoolean("BreathExhaustion"); + edit = nbt.getBoolean("EditMode"); } }