From fc108694c8b4fad910160b31abb82f9508114b68 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 5 Jun 2019 18:53:16 +0200 Subject: [PATCH] Enabling public lists --- src/de/steamwar/inventory/SWListInv.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;