Poikilos / EnlivenMinetest

Minetest engine server management tools and ENLIVEN game installer/updater
Other
3 stars 0 forks source link

Chest can't be broken if items are in it #209

Open Poikilos opened 5 years ago

Poikilos commented 5 years ago

Expected behavior: break chest and give items to player or drop items (or drop items that don't fit in player inventory)

slopsbucket commented 5 years ago

It's not a bug though. You also can't dig a furnace if it still has contents, or any technic machines.

With people carrying all sorts of stuff around inside chests, which be put inside other chests....

The handling of that much meta info quickly becomes unworkable, at best you'd get a lot of serious lag. More likely though just constant crashes.

Poikilos commented 5 years ago

@slopsbucket , let me clarify. I suggest emptying the chest forcibly when it is broken, then pushing the contents to the player's inventory, then lastly also adding the empty chest, dumping whatever doesnt fit onto the ground. This would replicate the behavior of bones nodes. What do you think?

slopsbucket commented 5 years ago

Not a bad idea - with standard chests.

Technic chests hold so many more stacks, every attempt to dig one is going to make a mess if it's full.