File tree Expand file tree Collapse file tree
src/main/java/de/srendi/advancedperipherals/common/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import net .neoforged .neoforge .event .CommandEvent ;
1919import net .neoforged .neoforge .event .ServerChatEvent ;
2020import net .neoforged .neoforge .event .entity .player .PlayerEvent ;
21- import vazkii .patchouli .api .PatchouliAPI ;
22- import vazkii .patchouli .common .base .PatchouliAPIImpl ;
2321
2422import java .util .function .Consumer ;
2523
@@ -43,7 +41,7 @@ public static void onWorldJoin(PlayerEvent.PlayerLoggedInEvent event) {
4341 // See https://vazkiimods.github.io/Patchouli/docs/patchouli-basics/giving-new
4442 if (APConfig .WORLD_CONFIG .givePlayerBookOnJoin .get () && APAddon .PATCHOULI .isLoaded ()) {
4543 if (!hasPlayedBefore (player )) {
46- PatchouliAPI .IPatchouliAPI patchouli = new PatchouliAPIImpl ();
44+ vazkii . patchouli . api . PatchouliAPI .IPatchouliAPI patchouli = vazkii . patchouli . api . PatchouliAPI . get ();
4745 ItemStack book = patchouli .getBookStack (AdvancedPeripherals .getRL ("manual" ));
4846 player .addItem (book );
4947 }
You can’t perform that action at this time.
0 commit comments