From 0fcaf9fb1b61caaf8ed78a5d3005b1d9d1c43b57 Mon Sep 17 00:00:00 2001 From: Dániel Juhász Date: Tue, 20 Jun 2017 09:19:56 +0000 Subject: Automatic item and node colorization (#5640) * Automatic item and node colorization Now nodes with a palette yield colored item stacks, and colored items place colored nodes by default. The client predicts the colorization. * Backwards compatibility * Use nil * Style fixes * Fix code style * Document changes --- src/inventory.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/inventory.h') diff --git a/src/inventory.h b/src/inventory.h index e3e818708..04c8156c8 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -223,9 +223,10 @@ public: // Checks whether there is room for a given item bool roomForItem(const ItemStack &item) const; - // Checks whether the given count of the given item name + // Checks whether the given count of the given item // exists in this inventory list. - bool containsItem(const ItemStack &item) const; + // If match_meta is false, only the items' names are compared. + bool containsItem(const ItemStack &item, bool match_meta) const; // Removes the given count of the given item name from // this inventory list. Walks the list in reverse order. -- cgit v1.2.3