Store and pass entity effect duration as an int not a short. (#4293)
Fixes #4292.
This commit is contained in:
committed by
GitHub
parent
2d3ad7f1ae
commit
c4f43cd8ec
@@ -300,7 +300,7 @@ void cProtocolRecognizer::SendEditSign(int a_BlockX, int a_BlockY, int a_BlockZ)
|
||||
|
||||
|
||||
|
||||
void cProtocolRecognizer::SendEntityEffect(const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration)
|
||||
void cProtocolRecognizer::SendEntityEffect(const cEntity & a_Entity, int a_EffectID, int a_Amplifier, int a_Duration)
|
||||
{
|
||||
ASSERT(m_Protocol != nullptr);
|
||||
m_Protocol->SendEntityEffect(a_Entity, a_EffectID, a_Amplifier, a_Duration);
|
||||
@@ -1252,7 +1252,3 @@ void cProtocolRecognizer::HandlePacketStatusPing()
|
||||
cPacketizer Pkt(*this, 0x01); // Pong packet
|
||||
Pkt.WriteBEInt64(Timestamp);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user