mojira.dev
MC-250079

Potions effects amplifier variable are int, but the packet uses byte

The server saves the potion effect amplifier on an int variable, but the packet sent to the client is byte, with potions with the amplifier over 127 the client will receive the wrong value, altho it isn't shown on the GUI, that is an inconsistency

and an issue when creating modifications

Comments 7

Relates to MC-118857 (not exactly a duplicate)

I suggest merging the reports.

Yeah, it may be better to merge

I swear, if they make potion effects byte and make the limit 127

I mean... they already are; the moment you reload from NBT (eg reconnect), it already overflows.

Although the two issues are certainly related, I don't think merging them makes much sense, as the NBT save format does not necessarily match the packet format, and one can be fixed without the other being fixed as well.

This is a feature request.

Awakened Redstone

(Unassigned)

Confirmed

(Unassigned)

1.18.2

Retrieved