Create ShopsTrait properly

This commit is contained in:
fullwall 2022-12-05 22:32:51 +08:00
parent a74e40eb1d
commit 97c2417c49

View File

@ -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);