Move last pieces of monster drops to DropProvider

This commit is contained in:
P0nk
2023-03-16 18:27:14 +01:00
parent 5a35b55d7a
commit f2f3abdb32
6 changed files with 44 additions and 57 deletions

View File

@@ -27,7 +27,6 @@ import client.Character;
import client.Client;
import client.command.Command;
import client.command.CommandContext;
import server.life.MonsterInformationProvider;
public class ReloadDropsCommand extends Command {
{
@@ -37,7 +36,7 @@ public class ReloadDropsCommand extends Command {
@Override
public void execute(Client c, String[] params, CommandContext ctx) {
Character player = c.getPlayer();
MonsterInformationProvider.getInstance().clearDrops();
ctx.dropProvider().clearCaches();
player.dropMessage(5, "Reloaded Drops");
}
}