Fix ItemID comparison with custom items

Signed-off-by: Andre Schweiger <andre.spiele@yahoo.de>