mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Recycler value fix (critical)
This commit is contained in:
parent
e70bffccf3
commit
cdbae76e84
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