Afforess/MinecartMania-SignCommands — Issue #18: Datavalue not initialized in collect/deposit
Author: leagris
Created: 2011-10-08 00:32:58+00:00
State: open

If no datavalue is specified on the collect/deposit sign, example :
Left sign :
Collect Items
263@256

Double Chest

Right sign :
Deposit Items
263@16

The cart arrives with charcoal (263;1), the chest collect 256 of it and as the cart leave, it get back 16 coal with random datavalue depending what's in memory during the item transfer.

The datavalue is lost or altered during fast load unload of items from a chest.

Usually, the invalid datavalue on (coal) makes it named coal but render it :
unable to stack with regular coal
unable to be used for torch crafting
still able to be used as fuel.

Writing explicit datavalues on the signs before and after chest would ensure a propre one but this is not normal behaviour.
If an item is collected/deposited without any datavalue in the condition, the transported item should copy the datavalue with the itemid, and the entire object should be zero initialized before the copy in case some message or communication is lost.