Started work on the farm, some changes to the idsu, its still broken

This commit is contained in:
modmuss50 2015-07-13 13:54:44 +01:00
parent be33bdc148
commit c160abf176
26 changed files with 626 additions and 194 deletions

View file

@ -4,7 +4,9 @@ package techreborn.command;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.ChatComponentText;
import techreborn.Core;
import techreborn.api.recipe.RecipeHandler;
import techreborn.packets.PacketHandler;
import techreborn.tiles.idsu.IDSUManager;
@ -36,7 +38,7 @@ public class TechRebornDevCommand extends CommandBase {
} else if ("recipes".equals(args[0])) {
sender.addChatMessage(new ChatComponentText(RecipeHandler.recipeList.size() + " recipes loaded"));
} else if ("idsu".equals(args[0])){
PacketHandler.sendPacketToPlayer(IDSUManager.INSTANCE.getPacket(sender.getEntityWorld(), (EntityPlayer) sender), (EntityPlayer) sender);
Core.packetPipeline.sendTo(IDSUManager.INSTANCE.getPacket(sender.getEntityWorld()), (EntityPlayerMP) sender);
}
}
}