package ValkyrienWarfareBase.Network;

import net.minecraft.client.Minecraft;
import net.minecraft.util.IThreadListener;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;

public class PlayerShipRefrenceHandler implements IMessageHandler<PlayerShipRefrenceMessage, IMessage> {

	@Override
	public IMessage onMessage(PlayerShipRefrenceMessage message, MessageContext ctx) {
		IThreadListener mainThread = Minecraft.getMinecraft();
		mainThread.addScheduledTask(new Runnable() {
			@Override
			public void run() {
				//Confirmed working as intended
//				System.out.println("Got the message");
			}
		});


		return null;
	}

}

@@ -36,90 +36,8 @@
 k;%0A%0A
-import net.minecraft.client.Minecraft;%0Aimport net.minecraft.util.IThreadListener;%0A
 impo
@@ -447,16 +447,69 @@
 tx) %7B%0A%09%09
+//This seems to be being called on the server!!!%0A%09%09/*
 IThreadL
@@ -729,18 +729,18 @@
 %09%7D%0A%09%09%7D);
-%0A%0A
+*/
 %0A%09%09retur

comment out some code that was causing server issues