This commit is contained in:
Boblet 2022-02-02 09:46:44 +01:00
parent 1c40dbbe1f
commit 190d83028d
5 changed files with 19 additions and 10 deletions

View File

@ -34,7 +34,9 @@ public class HazardTypeHot extends HazardTypeBase {
gloves = armor.getItem() instanceof ItemModGloves || ArmorUtil.checkForHazmat(target);
if(!gloves) {
ItemStack mod = ArmorModHandler.pryMods(armor)[ArmorModHandler.legs_only];
gloves = mod.getItem() instanceof ItemModGloves;
if(mod != null)
gloves = mod.getItem() instanceof ItemModGloves;
}
}
}

View File

@ -43,14 +43,17 @@ public class ContainerMachineReactorBreeding extends Container {
ItemStack stack = slot.getStack();
var3 = stack.copy();
if (index <= 2) {
if (!this.mergeItemStack(stack, 2, this.inventorySlots.size(), true)) {
if(index <= 2) {
if(!this.mergeItemStack(stack, 2, this.inventorySlots.size(), true)) {
return null;
}
} else if(stack.getItem() instanceof ItemBreedingRod)
if (!this.mergeItemStack(stack, 0, 1, false)) {
} else if(stack.getItem() instanceof ItemBreedingRod) {
if(!this.mergeItemStack(stack, 0, 1, false)) {
return null;
}
} else {
return null;
}
if (stack.stackSize == 0) {

View File

@ -79,11 +79,11 @@ public class ContainerReactorZirnox extends Container {
} else {
if(FluidContainerRegistry.getFluidContent(stack, Fluids.CARBONDIOXIDE) > 0) {
if(!this.mergeItemStack(stack, 24, 25, true))
if(!this.mergeItemStack(stack, 24, 26, false))
return null;
} else if(FluidContainerRegistry.getFluidContent(stack, Fluids.WATER) > 0) {
if(!this.mergeItemStack(stack, 25, 26, true))
if(!this.mergeItemStack(stack, 26, 28, false))
return null;
} else {

View File

@ -377,9 +377,10 @@ public class CraftingManager {
addShapelessAuto(new ItemStack(ModBlocks.asphalt, 1), new Object[] { ModBlocks.asphalt_light });
addRecipeAuto(new ItemStack(ModBlocks.block_niter_reinforced, 1), new Object[] { "TCT", "CNC", "TCT", 'T', TCALLOY.ingot(), 'C', ModBlocks.concrete, 'N', KNO.block() });
String[] dyes = { "Black", "Red", "Green", "Brown", "Blue", "Purple", "Cyan", "LightGray", "Gray", "Pink", "Lime", "Yellow", "LightBlue", "Magenta", "Orange", "White" };
for(int i = 0; i < 16; i++) {
String dyeName = ItemDye.field_150923_a[15 - i];
dyeName = "dye" + dyeName.substring(0, 1).toUpperCase() + dyeName.substring(1);
String dyeName = "dye" + dyes[15 - i];
addRecipeAuto(new ItemStack(ModBlocks.concrete_colored, 8, i), new Object[] { "CCC", "CDC", "CCC", 'C', ModBlocks.concrete_smooth, 'D', dyeName });
addRecipeAuto(new ItemStack(ModBlocks.concrete_colored, 8, i), new Object[] { "CCC", "CDC", "CCC", 'C', ModBlocks.concrete_colored, 'D', dyeName });
}

View File

@ -88,6 +88,9 @@ public class TileEntityMachineLiquefactor extends TileEntityMachineBase implemen
FluidStack out = LiquefactionRecipes.getOutput(slots[0]);
if(out == null)
return false;
if(out.type != tank.getTankType() && tank.getFill() > 0)
return false;