Merge branch 'dev' into 'dev'

Recycler value fix (critical)

See merge request morningstar/Arcturus-Community!292
This commit is contained in:
Harmony 2020-09-15 11:34:18 -04:00
commit b28f115784
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- Recycler value fix
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('recycler.value', '8');

View File

@ -27,6 +27,7 @@ public class RecycleEvent extends MessageHandler {
THashSet<HabboItem> items = new THashSet<>();
int count = this.packet.readInt();
if (count < Emulator.getConfig().getInt("recycler.value", 8)) return;
for (int i = 0; i < count; i++) {
HabboItem item = this.client.getHabbo().getInventory().getItemsComponent().getHabboItem(this.packet.readInt());