diff options
author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-07-15 04:07:36 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2021-07-15 04:07:36 +0000 |
commit | 4e4058da31c3575b69c69d2d7bb3c9af29e248dc (patch) | |
tree | d46d48754f080386e23bb86e884580fed0f555f3 /src/main/java/com/thatgravyboat/skyblockhud/mixins | |
parent | 718740e85f48b57bf712a62f811cd4d34dd98450 (diff) | |
download | SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.tar.gz SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.tar.bz2 SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.zip |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/mixins')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinNetHandlerPlayClient.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinNetHandlerPlayClient.java b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinNetHandlerPlayClient.java index d4af191..40f3334 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinNetHandlerPlayClient.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinNetHandlerPlayClient.java @@ -21,7 +21,7 @@ import org.spongepowered.asm.mixin.injection.callback.LocalCapture; public class MixinNetHandlerPlayClient { @Inject(method = "handleSetSlot", at = @At("HEAD")) - public void onHandleSetSlot(S2FPacketSetSlot packetIn, CallbackInfo ci){ + public void onHandleSetSlot(S2FPacketSetSlot packetIn, CallbackInfo ci) { if (SkyblockHud.hasSkyblockScoreboard()) { Minecraft mc = Minecraft.getMinecraft(); PacketThreadUtil.checkThreadAndEnqueue(packetIn, mc.getNetHandler(), mc); @@ -39,7 +39,10 @@ public class MixinNetHandlerPlayClient { if (extraAttributes.hasKey("enchantments")) { NBTTagCompound enchantments = extraAttributes.getCompoundTag("enchantments"); if (enchantments.getKeySet().size() == 1) { - for (String e : enchantments.getKeySet()) { specialId = e; break; } + for (String e : enchantments.getKeySet()) { + specialId = e; + break; + } if (specialId != null) number = enchantments.getInteger(specialId); } } |