diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
| commit | 9a4d1e95ea7784f0f98ea2913701a3a3c28aefaa (patch) | |
| tree | b4307f58fe2197d2215707bb3f44cf8952229c6d /src/main/java/darkknight/jewelrycraft/util/PlayerUtils.java | |
| parent | 4f7ad220df0438b6f3382110577b53f29da46453 (diff) | |
Formatting pass
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/util/PlayerUtils.java')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/util/PlayerUtils.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/util/PlayerUtils.java b/src/main/java/darkknight/jewelrycraft/util/PlayerUtils.java index c981555..8a3abe3 100755 --- a/src/main/java/darkknight/jewelrycraft/util/PlayerUtils.java +++ b/src/main/java/darkknight/jewelrycraft/util/PlayerUtils.java @@ -12,24 +12,26 @@ public class PlayerUtils { * Returns the NBTTag of the player * * @param player - * the player + * the player * @param modName - * the mod name + * the mod name * @return appropriate NBTTag */ - public static NBTTagCompound - getModPlayerPersistTag(EntityPlayer player, String modName) { - if (player.worldObj.isRemote && ScreenHandler.tagCache != null) + public static NBTTagCompound getModPlayerPersistTag( + EntityPlayer player, String modName) { + if (player.worldObj.isRemote + && ScreenHandler.tagCache != null) return ScreenHandler.tagCache; NBTTagCompound tag = player.getEntityData(); NBTTagCompound persistTag = null; if (tag.hasKey(EntityPlayer.PERSISTED_NBT_TAG)) - persistTag = - tag.getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG); + persistTag = tag.getCompoundTag( + EntityPlayer.PERSISTED_NBT_TAG); else { persistTag = new NBTTagCompound(); - tag.setTag(EntityPlayer.PERSISTED_NBT_TAG, persistTag); + tag.setTag(EntityPlayer.PERSISTED_NBT_TAG, + persistTag); } NBTTagCompound modTag = null; if (persistTag.hasKey(modName)) |
