mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Merge branch 'dev' into 'dev'
Recycler value fix (critical) See merge request morningstar/Arcturus-Community!292
This commit is contained in:
commit
b28f115784
2
sqlupdates/2_4_0-RC-2 to 2_4_0-RC-3.sql
Normal file
2
sqlupdates/2_4_0-RC-2 to 2_4_0-RC-3.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- Recycler value fix
|
||||
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('recycler.value', '8');
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user