mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Encase the PatchouliPages init into a isLoaded check
Allows for testing without Patchouli
This commit is contained in:
parent
3262554139
commit
a20c25eb4a
1 changed files with 6 additions and 2 deletions
|
@ -61,6 +61,7 @@ import net.minecraft.client.renderer.item.ItemProperties;
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
import net.minecraft.network.protocol.game.ServerboundPlayerActionPacket;
|
import net.minecraft.network.protocol.game.ServerboundPlayerActionPacket;
|
||||||
import net.minecraft.world.phys.BlockHitResult;
|
import net.minecraft.world.phys.BlockHitResult;
|
||||||
|
import net.neoforged.fml.ModList;
|
||||||
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
|
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
|
||||||
import net.neoforged.neoforge.client.event.EntityRenderersEvent;
|
import net.neoforged.neoforge.client.event.EntityRenderersEvent;
|
||||||
import net.neoforged.neoforge.client.event.RegisterMenuScreensEvent;
|
import net.neoforged.neoforge.client.event.RegisterMenuScreensEvent;
|
||||||
|
@ -109,7 +110,10 @@ public class ActuallyAdditionsClient {
|
||||||
|
|
||||||
setupRenderLayers();
|
setupRenderLayers();
|
||||||
|
|
||||||
PatchouliPages.init();
|
|
||||||
|
if (ModList.get().isLoaded("patchouli")) {
|
||||||
|
PatchouliPages.init();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setupRenderLayers() {
|
private static void setupRenderLayers() {
|
||||||
|
|
Loading…
Reference in a new issue