Skip to content

Commit

Permalink
Write resources only when on Client
Browse files Browse the repository at this point in the history
  • Loading branch information
kindlich committed Nov 16, 2020
1 parent b0cadbb commit 4155584
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import com.blamejared.contenttweaker.api.items.*;
import com.blamejared.contenttweaker.file_handling.*;
import com.blamejared.crafttweaker.api.*;
import net.minecraftforge.api.distmarker.*;
import net.minecraftforge.fml.*;
import net.minecraftforge.fml.common.thread.*;
import net.minecraftforge.registries.*;

Expand Down Expand Up @@ -87,8 +89,8 @@ static void complete() {
CraftTweakerAPI.logDebug("Registering Item '%s'", value.getRegistryName());
ForgeRegistries.ITEMS.register(value);
});
writeResourcePack();

DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> VanillaFactory::writeResourcePack);
writeDataPack();
}

Expand Down

0 comments on commit 4155584

Please sign in to comment.