Skip to content

Commit

Permalink
Create ShopsTrait properly
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Dec 5, 2022
1 parent a74e40e commit 97c2417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/main/java/net/citizensnpcs/Citizens.java
Expand Up @@ -404,7 +404,7 @@ public void onEnable() {
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);

Expand Down

0 comments on commit 97c2417

Please sign in to comment.