fix: possible issues
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
|||||||
"git.konjactw.dev/falloutBot/go-mc/data/entity"
|
"git.konjactw.dev/falloutBot/go-mc/data/entity"
|
||||||
"git.konjactw.dev/falloutBot/go-mc/level"
|
"git.konjactw.dev/falloutBot/go-mc/level"
|
||||||
"git.konjactw.dev/falloutBot/go-mc/level/block"
|
"git.konjactw.dev/falloutBot/go-mc/level/block"
|
||||||
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
|
|
||||||
|
|
||||||
"git.konjactw.dev/patyhank/minego/pkg/bot"
|
"git.konjactw.dev/patyhank/minego/pkg/bot"
|
||||||
"git.konjactw.dev/patyhank/minego/pkg/protocol"
|
"git.konjactw.dev/patyhank/minego/pkg/protocol"
|
||||||
@@ -67,7 +66,7 @@ func NewWorld(c bot.Client) *World {
|
|||||||
entityUUID: p.UUID,
|
entityUUID: p.UUID,
|
||||||
entityType: entity.ID(p.Type),
|
entityType: entity.ID(p.Type),
|
||||||
pos: mgl64.Vec3{p.X, p.Y, p.Z},
|
pos: mgl64.Vec3{p.X, p.Y, p.Z},
|
||||||
rot: mgl64.Vec2{pk.Angle(p.XRot).ToDeg(), pk.Angle(p.YRot).ToDeg()},
|
rot: mgl64.Vec2{p.Yaw.ToDeg(), p.Pitch.ToDeg()},
|
||||||
metadata: nil,
|
metadata: nil,
|
||||||
equipment: nil,
|
equipment: nil,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -521,7 +521,7 @@ func (*GameEvent) PacketID() packetid.ClientboundPacketID {
|
|||||||
return packetid.ClientboundGameEvent
|
return packetid.ClientboundGameEvent
|
||||||
}
|
}
|
||||||
func (*OpenHorseScreen) PacketID() packetid.ClientboundPacketID {
|
func (*OpenHorseScreen) PacketID() packetid.ClientboundPacketID {
|
||||||
return packetid.ClientboundHorseScreenOpen
|
return packetid.ClientboundMountScreenOpen
|
||||||
}
|
}
|
||||||
func (*HurtAnimation) PacketID() packetid.ClientboundPacketID {
|
func (*HurtAnimation) PacketID() packetid.ClientboundPacketID {
|
||||||
return packetid.ClientboundHurtAnimation
|
return packetid.ClientboundHurtAnimation
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ type DebugSampleSubscription struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (*DebugSampleSubscription) PacketID() packetid.ServerboundPacketID {
|
func (*DebugSampleSubscription) PacketID() packetid.ServerboundPacketID {
|
||||||
return packetid.ServerboundDebugSampleSubscription
|
return packetid.ServerboundDebugSubscriptionRequest
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
registerPacket(packetid.ServerboundDebugSampleSubscription, func() ServerboundPacket {
|
registerPacket(packetid.ServerboundDebugSubscriptionRequest, func() ServerboundPacket {
|
||||||
return &DebugSampleSubscription{}
|
return &DebugSampleSubscription{}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user