Fixed client-side issue when shift-clicking lava crystals into a furnace while on a server.
This commit is contained in:
parent
f3afb10769
commit
04f5b7a584
2 changed files with 14 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue