When checking with isEmpty size will always return 0.

This commit is contained in:
MobiusDevelopment
2021-05-08 19:27:30 +00:00
parent f863d6ded1
commit 9ad17e2385
2 changed files with 4 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ public class MacroList
final Collection<Macro> allMacros = getAllMacroses(); final Collection<Macro> allMacros = getAllMacroses();
if (allMacros.isEmpty()) if (allMacros.isEmpty())
{ {
_owner.sendPacket(new SendMacroList(_revision, allMacros.size(), null)); _owner.sendPacket(new SendMacroList(_revision, 0, null));
} }
else else
{ {

View File

@@ -122,7 +122,7 @@ public class MacroList
final Collection<Macro> allMacros = getAllMacroses(); final Collection<Macro> allMacros = getAllMacroses();
if (allMacros.isEmpty()) if (allMacros.isEmpty())
{ {
_owner.sendPacket(new SendMacroList(_revision, allMacros.size(), null)); _owner.sendPacket(new SendMacroList(_revision, 0, null));
} }
else else
{ {