MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / itemsEqual

Method itemsEqual

source/game/StarItem.cpp:299–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299bool Item::itemsEqual(ItemConstPtr const& a, ItemConstPtr const& b) {
300 if (!a && !b) // Both are null
301 return true;
302 if (a && b) // Both aren't null, compare
303 return a->stackableWith(b);
304 else // One is null, so not equal
305 return false;
306}
307
308}

Callers

nothing calls this directly

Calls 1

stackableWithMethod · 0.80

Tested by

no test coverage detected