From 6724e8eef481fc4f77ce91958424679f3cf22499 Mon Sep 17 00:00:00 2001 From: Ermolay <60964356+egor-erm@users.noreply.github.com> Date: Fri, 26 Aug 2022 12:49:39 +0300 Subject: [PATCH] protocol/events.go: Fixed missing fields in PlayerDiedEventData (#148) --- minecraft/protocol/events.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/minecraft/protocol/events.go b/minecraft/protocol/events.go index bf4cf75b..3a301318 100644 --- a/minecraft/protocol/events.go +++ b/minecraft/protocol/events.go @@ -110,14 +110,20 @@ func (c *CauldronUsedEventData) Marshal(r IO) { type PlayerDiedEventData struct { // AttackerEntityID ... AttackerEntityID int32 + // AttackerVariant ... + AttackerVariant int32 // EntityDamageCause ... EntityDamageCause int32 + // InRaid ... + InRaid bool } // Marshal ... func (p *PlayerDiedEventData) Marshal(r IO) { r.Varint32(&p.AttackerEntityID) + r.Varint32(&p.AttackerVariant) r.Varint32(&p.EntityDamageCause) + r.Bool(&p.InRaid) } // BossKilledEventData is the event data sent when a boss dies.