From 97c2417c499d1a8197af55625d49952ccf26cc83 Mon Sep 17 00:00:00 2001 From: fullwall Date: Mon, 5 Dec 2022 22:32:51 +0800 Subject: [PATCH] Create ShopsTrait properly --- main/src/main/java/net/citizensnpcs/Citizens.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/net/citizensnpcs/Citizens.java b/main/src/main/java/net/citizensnpcs/Citizens.java index ff0c3f5fa..bb6c2ba92 100644 --- a/main/src/main/java/net/citizensnpcs/Citizens.java +++ b/main/src/main/java/net/citizensnpcs/Citizens.java @@ -404,7 +404,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin { npcRegistry = new CitizensNPCRegistry(saves, "citizens"); traitFactory = new CitizensTraitFactory(); traitFactory.registerTrait(TraitInfo.create(ShopTrait.class).withSupplier(() -> { - return new ShopTrait(); + return new ShopTrait(shops); })); selector = new NPCSelector(this);