mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +01:00
Create ShopsTrait properly
This commit is contained in:
parent
a74e40eb1d
commit
97c2417c49
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user