dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

world.BlockRuntimeID panics when placing down Furnace

Open ethaniccc opened this issue 2 years ago • 0 comments

INFO[0000] Server running on [::]:4444.                 
coEthaniccc has joined the game
DEBU[0129] unhandled packet *packet.SetPlayerInventoryOptions{LeftInventoryTab:10 RightInventoryTab:4 Filtering:false InventoryLayout:6 CraftingLayout:0} from xxx:53436 
panic: cannot find block by non-0 hash of block block.Furnace{solid:block.solid{}, bassDrum:block.bassDrum{}, smelter:(*block.smelter)(0xc00148a540), Facing:0, Lit:false} [recovered]
        panic: cannot find block by non-0 hash of block block.Furnace{solid:block.solid{}, bassDrum:block.bassDrum{}, smelter:(*block.smelter)(0xc00148a540), Facing:0, Lit:false}

goroutine 56 [running]:
github.com/df-mc/dragonfly/server/session.(*Session).handlePackets.func1()
        /root/dragonfly/server/session/session.go:303 +0x69
panic({0x966420?, 0xc000461df0?})
        /snap/go/10455/src/runtime/panic.go:914 +0x21f
github.com/df-mc/dragonfly/server/world.BlockRuntimeID({0xb62a10, 0xc0010814a0})
        /root/dragonfly/server/world/block.go:136 +0xd4
github.com/df-mc/dragonfly/server/session.stackFromItem({0x1873, {0xb58560, 0xc0010814a0}, 0x1, {0x0, 0x0}, {0x0, 0x0, 0x0}, 0x0, ...})
        /root/dragonfly/server/session/player.go:710 +0x1e7
github.com/df-mc/dragonfly/server/session.instanceFromItem({0x1873, {0xb58560, 0xc0010814a0}, 0x1, {0x0, 0x0}, {0x0, 0x0, 0x0}, 0x0, ...})
        /root/dragonfly/server/session/player.go:754 +0xbd
github.com/df-mc/dragonfly/server/session.(*Session).ViewEntity(0xc001112800, {0xb668c8, 0xc000722120})
        /root/dragonfly/server/session/world.go:128 +0x3e5
github.com/df-mc/dragonfly/server/world.showEntity({0xb668c8, 0xc000722120}, {0xb6d848, 0xc001112800})
        /root/dragonfly/server/world/world.go:1157 +0x37
github.com/df-mc/dragonfly/server/world.(*World).AddEntity(0xc0000c8540, {0xb668c8, 0xc000722120})
        /root/dragonfly/server/world/world.go:691 +0x348
github.com/df-mc/dragonfly/server/player.(*Player).Drop(0xc00077a000, {0x1872, {0xb58560, 0xc0010803f0}, 0x1, {0x0, 0x0}, {0x0, 0x0, 0x0}, ...})
        /root/dragonfly/server/player/player.go:2167 +0x399
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).handleNormalTransaction(0xc00200fc40?, 0xc001112800?, 0xc001112800)
        /root/dragonfly/server/session/handler_inventory_transaction.go:106 +0x89b
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).Handle(0x989800?, {0xb5e068?, 0xc00226f720}, 0xc001112800)
        /root/dragonfly/server/session/handler_inventory_transaction.go:24 +0x97
github.com/df-mc/dragonfly/server/session.(*Session).handlePacket(0xc001112800, {0xb5e068, 0xc00226f720})
        /root/dragonfly/server/session/session.go:432 +0x8d
github.com/df-mc/dragonfly/server/session.(*Session).handlePackets(0xc001112800)
        /root/dragonfly/server/session/session.go:312 +0xdc
created by github.com/df-mc/dragonfly/server/session.(*Session).Start in goroutine 1
        /root/dragonfly/server/session/session.go:217 +0xa5
exit status 2

DF Commit: 21eb18fd3299363f3dbb837edb2d8b91cf79e409

ethaniccc avatar Dec 17 '23 16:12 ethaniccc