Merge branch 'wordfilter-event-fix' into 'dev'

Fix SupportTicketEvent is fired twice

See merge request morningstar/Arcturus-Community!481
This commit is contained in:
Remco 2022-03-02 22:34:21 +00:00
commit e195a108b1

View File

@ -184,8 +184,6 @@ public class ModToolManager {
public void quickTicket(Habbo reported, String reason, String message) {
ModToolIssue issue = new ModToolIssue(0, reason, reported.getHabboInfo().getId(), reported.getHabboInfo().getUsername(), 0, message, ModToolTicketType.AUTOMATIC);
if (Emulator.getPluginManager().fireEvent(new SupportTicketEvent(null, issue)).isCancelled())
return;
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);