1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-10 09:22:49 +00:00

Fixed small bugs

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-07-31 23:18:38 -03:00
parent 7eca70e881
commit 6b79db00c2
18 changed files with 77 additions and 39 deletions

View File

@@ -16,6 +16,7 @@
*/
package com.l2jserver.model.world.character;
import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
@@ -136,7 +137,9 @@ public class CharacterShortcutContainer implements Iterable<Shortcut> {
return character;
}
public static class ShortcutSlotComparator implements Comparator<Shortcut> {
public static class ShortcutSlotComparator implements Comparator<Shortcut>, Serializable {
private static final long serialVersionUID = 1L;
@Override
public int compare(Shortcut o1, Shortcut o2) {
return ((o1.getPage() * o1.getSlot()) - (o2.getPage() * o2