diff --git a/src/de/steamwar/inventory/SWListInv.java b/src/de/steamwar/inventory/SWListInv.java index c104a59..6e7efe5 100644 --- a/src/de/steamwar/inventory/SWListInv.java +++ b/src/de/steamwar/inventory/SWListInv.java @@ -92,14 +92,14 @@ public class SWListInv extends SWInventory { return onlinePlayers; } - public static List> getSchemList(Player p, SchematicType type){ + public static List> getSchemList(int warkingUserId, SchematicType type){ List> schemList = new ArrayList<>(); List schems; if(type == null) - schems = Schematic.getSchemsAccessibleByUser(p.getUniqueId()); + schems = Schematic.getSchemsAccessibleByUser(warkingUserId); else - schems = Schematic.getSchemsOfType(p.getUniqueId(), type); + schems = Schematic.getSchemsOfType(warkingUserId, type); for(Schematic s : schems){ Material m;