File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ public virtual void HandleMcpeEntityEvent(McpeEntityEvent message)
260260
261261 public virtual void HandleMcpeMobEffect ( McpeMobEffect message )
262262 {
263+ Log . Warn ( $ "I got effect: { message . runtimeEntityId } / { message . eventId } / { message . effectId } / { message . amplifier } / { message . particles } / { message . duration } / { message . tick } ") ;
263264 }
264265
265266 public virtual void HandleMcpeUpdateAttributes ( McpeUpdateAttributes message )
Original file line number Diff line number Diff line change @@ -3655,7 +3655,7 @@ protected override void EncodePacket()
36553655 WriteSignedVarInt ( amplifier ) ;
36563656 Write ( particles ) ;
36573657 WriteSignedVarInt ( duration ) ;
3658- WriteUnsignedVarLong ( 20 ) ;
3658+ Write ( tick ) ;
36593659
36603660 AfterEncode ( ) ;
36613661 }
@@ -3675,7 +3675,7 @@ protected override void DecodePacket()
36753675 amplifier = ReadSignedVarInt ( ) ;
36763676 particles = ReadBool ( ) ;
36773677 duration = ReadSignedVarInt ( ) ;
3678- tick = ReadUnsignedVarLong ( ) ;
3678+ tick = ReadLong ( ) ;
36793679
36803680 AfterDecode ( ) ;
36813681 }
@@ -4361,7 +4361,7 @@ protected override void EncodePacket()
43614361
43624362 WriteUnsignedVarLong ( runtimeEntityId ) ;
43634363 Write ( velocity ) ;
4364- WriteUnsignedVarLong ( 20 ) ;
4364+ WriteUnsignedVarLong ( tick ) ;
43654365
43664366 AfterEncode ( ) ;
43674367 }
You can’t perform that action at this time.
0 commit comments