Skip to content

Commit

Permalink
Fix not writing condition to the network for enchantment modules
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Jan 11, 2024
1 parent f617dc0 commit 8ee080f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public EnchantmentModule fromNetwork(FriendlyByteBuf buffer) {
public void toNetwork(EnchantmentModule object, FriendlyByteBuf buffer) {
buffer.writeRegistryIdUnsafe(ForgeRegistries.ENCHANTMENTS, object.enchantment());
buffer.writeVarInt(object.level());
object.condition().toNetwork(buffer);
}
}

Expand Down

0 comments on commit 8ee080f

Please sign in to comment.