Skip to content

Commit

Permalink
Update NBT.kt
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
EngineMachiner authored Sep 9, 2024
1 parent d8c0db2 commit e9426dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/enginemachiner/harmony/client/NBT.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object NBT {
/** Stores the display temporally for it to be sent later. */
fun saveDisplay(stack: ItemStack, next: NbtCompound ) {

if ( next.contains("resetDisplay") ) return; val former = stack.nbt!!
if ( next.contains("resetDisplay") ) return; val former = stack.tag!!

next.put( "display", former.getCompound("display") )

Expand Down

0 comments on commit e9426dc

Please sign in to comment.