From 91b54b635d10f7d170f9220590773659ba29ff07 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 14 Nov 2023 21:44:50 -0800 Subject: [PATCH] fix bug that caused boxes to never be empty --- src/ItemCreator.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ItemCreator.cc b/src/ItemCreator.cc index f20aa235..422d09ac 100644 --- a/src/ItemCreator.cc +++ b/src/ItemCreator.cc @@ -161,7 +161,9 @@ ItemData ItemCreator::on_box_item_drop_with_norm_area(uint8_t area_norm) { default: throw logic_error("this should be impossible"); } - this->generate_common_item_variances(area_norm, item); + if (item_class < 6) { + this->generate_common_item_variances(area_norm, item); + } } return item; }