Fixed client-side issue when shift-clicking lava crystals into a furnace while on a server.

This commit is contained in:
WayofTime 2016-01-05 09:19:26 -05:00
parent f3afb10769
commit 04f5b7a584
2 changed files with 14 additions and 1 deletions

View file

@ -1,5 +1,11 @@
------------------------------------------------------
Version NEXT
Version 2.0.0-3
------------------------------------------------------
- Fixed client-side issue when shift-clicking lava crystals into a furnace while on a server.
------------------------------------------------------
Version 2.0.0-2
------------------------------------------------------
- Added Life Essence bucket recipe
- Added the rendering of LP inside of the altar

View file

@ -14,7 +14,9 @@ import net.minecraft.server.MinecraftServer;
import net.minecraft.world.World;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.eventhandler.Event;
import net.minecraftforge.fml.relauncher.Side;
import java.util.UUID;
@ -32,6 +34,11 @@ public class NetworkHelper
*/
public static SoulNetwork getSoulNetwork(String name)
{
if (FMLCommonHandler.instance().getSide() == Side.CLIENT)
{
return null;
}
World world = DimensionManager.getWorld(0);
SoulNetwork network = (SoulNetwork) world.getMapStorage().loadData(SoulNetwork.class, name);