Fixes some crashes, added new command, closes #165

This commit is contained in:
Modmuss50 2015-10-06 20:35:54 +01:00
parent 2a314aa4bb
commit 3b7001d44f
3 changed files with 13 additions and 2 deletions

View file

@ -7,6 +7,8 @@ import net.minecraft.util.ChatComponentText;
import net.minecraftforge.fluids.Fluid;
import techreborn.api.fuel.FluidPowerManager;
import techreborn.api.recipe.RecipeHandler;
import techreborn.partSystem.IModPart;
import techreborn.partSystem.ModPartRegistry;
import java.util.Objects;
@ -45,6 +47,10 @@ public class TechRebornDevCommand extends CommandBase {
sender.addChatMessage(new ChatComponentText("Found invalid fluid entry"));
}
}
} else if ("parts".equals(args[0])){
for (IModPart part : ModPartRegistry.parts){
sender.addChatMessage(new ChatComponentText(part.getName()));
}
}
}
}