12
0

Enabling public lists

Dieser Commit ist enthalten in:
Lixfel 2019-06-05 18:53:16 +02:00
Ursprung 0361e81619
Commit fc108694c8

Datei anzeigen

@ -92,14 +92,14 @@ public class SWListInv<T> extends SWInventory {
return onlinePlayers;
}
public static List<Pair<SWItem, Schematic>> getSchemList(Player p, SchematicType type){
public static List<Pair<SWItem, Schematic>> getSchemList(int warkingUserId, SchematicType type){
List<Pair<SWItem, Schematic>> schemList = new ArrayList<>();
List<Schematic> 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;