Skip to content

Commit

Permalink
Fix server side rendering, Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wimmer committed Jul 18, 2016
1 parent a5f5a2a commit 42d9c87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/io/teammion/morefood/MoreFood.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]> on 05.06.16.
Expand All @@ -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();
Expand Down

0 comments on commit 42d9c87

Please sign in to comment.