From 42d9c87fa2897a365569b2a95be04e7771e946c1 Mon Sep 17 00:00:00 2001 From: Stefan Wimmer Date: Mon, 18 Jul 2016 22:37:06 +0200 Subject: [PATCH] Fix server side rendering, Release 1.1.0 --- build.gradle | 2 +- package.json | 2 +- src/main/java/io/teammion/morefood/MoreFood.java | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index d56975b..656093c 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ plugins { id "net.minecraftforge.gradle.forge" version "2.0.2" } */ -version = "1.0.0" +version = "1.1.0" group = "io.teammion.morefood" archivesBaseName = "tm-morefood" diff --git a/package.json b/package.json index 57c3a9c..00a54ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tm-morefood", - "version": "1.0.0", + "version": "1.1.0", "description": "This Minecraft Mod will add additional food to Mincraft to provide a healthy variety.", "scripts": { "setup": "./setup.sh", diff --git a/src/main/java/io/teammion/morefood/MoreFood.java b/src/main/java/io/teammion/morefood/MoreFood.java index bba991a..38b5309 100644 --- a/src/main/java/io/teammion/morefood/MoreFood.java +++ b/src/main/java/io/teammion/morefood/MoreFood.java @@ -8,6 +8,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; +import net.minecraftforge.fml.relauncher.Side; /** * Created by Stefan Wimmer on 05.06.16. @@ -25,8 +26,11 @@ public void preInit(FMLPreInitializationEvent e) @Mod.EventHandler public void init(FMLInitializationEvent e) { - Items.render(); - Blocks.render(); + if (e.getSide() == Side.CLIENT) + { + Items.render(); + Blocks.render(); + } ShapedRecipes.register(); ShapelessRecipes.register();