Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6748c68de | ||
|
|
89995fb31a | ||
|
|
9092b49d3b | ||
|
|
508a51f2ca |
No files matched your search
@@ -0,0 +1,17 @@
|
||||
name: Optimize images
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main, release/** ]
|
||||
paths:
|
||||
- "**/*.png"
|
||||
|
||||
push:
|
||||
branches: [ master, main, release/** ]
|
||||
paths:
|
||||
- "**/*.png"
|
||||
|
||||
jobs:
|
||||
optimize-images:
|
||||
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
|
||||
secrets: inherit
|
||||
@@ -11,5 +11,5 @@ dependencies {
|
||||
api('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
|
||||
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.331:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.576:dev')
|
||||
}
|
||||
@@ -3,6 +3,7 @@ package emt.block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
@@ -40,6 +41,7 @@ public abstract class BlockBaseContainer extends BlockContainer {
|
||||
this.setCreativeTab(EMT.TAB);
|
||||
this.setStepSound(soundType);
|
||||
this.setHardness(hardness);
|
||||
setHarvestLevel("wrench", 1);
|
||||
|
||||
this.countOfMetas = countOfMetas;
|
||||
this.instance = curInstance;
|
||||
@@ -76,7 +78,7 @@ public abstract class BlockBaseContainer extends BlockContainer {
|
||||
return set.bottom;
|
||||
} else if (side == 1) {
|
||||
return set.top;
|
||||
} else if (side != tile.facing) {
|
||||
} else if (tile == null || side != tile.facing) {
|
||||
return set.side;
|
||||
} else if (tile.isOn) {
|
||||
if (set.frontOn != null) {
|
||||
@@ -143,6 +145,11 @@ public abstract class BlockBaseContainer extends BlockContainer {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canHarvestBlock(EntityPlayer player, int meta) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped(int meta) {
|
||||
return meta;
|
||||
|
||||
@@ -23,7 +23,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import emt.tile.TileEntityEtherealMacerator;
|
||||
import emt.tile.TileEntityIndustrialWandRecharge;
|
||||
import ic2.api.item.IC2Items;
|
||||
|
||||
public class BlockMachines extends BlockBaseContainer {
|
||||
|
||||
@@ -90,7 +89,7 @@ public class BlockMachines extends BlockBaseContainer {
|
||||
|
||||
@Override
|
||||
public Item getItemDropped(int meta, Random random, int fortune) {
|
||||
return IC2Items.getItem("machine").getItem();
|
||||
return Item.getItemFromBlock(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -248,28 +248,6 @@ public class EMTRecipes {
|
||||
'X',
|
||||
OreDictionary.getOres("itemRubber").get(i));
|
||||
}
|
||||
|
||||
/** Smelting Recipes **/
|
||||
GameRegistry.addSmelting(
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 1),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 6),
|
||||
0.0F);
|
||||
GameRegistry.addSmelting(
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 2),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 6),
|
||||
0.0F);
|
||||
GameRegistry.addSmelting(
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 3),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 3),
|
||||
0.0F);
|
||||
GameRegistry.addSmelting(
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 4),
|
||||
new ItemStack(ConfigItems.itemResource, 1, 3),
|
||||
0.0F);
|
||||
GameRegistry.addSmelting(
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 10),
|
||||
new ItemStack(EMTItems.itemEMTItems, 2, 8),
|
||||
0.0F);
|
||||
}
|
||||
|
||||
private static void registerShaplessRecipes() {}
|
||||
|
||||
@@ -59,6 +59,6 @@ public class ItemNanoBootsTraveller extends ItemElectricBootsTraveller implement
|
||||
@Override
|
||||
@Optional.Method(modid = "gregtech_nh")
|
||||
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
|
||||
return true;
|
||||
return Hazard.STANDARD_HAZARDS.contains(hazard);
|
||||
}
|
||||
}
|
||||
@@ -58,6 +58,6 @@ public class ItemNanoGoggles extends ItemElectricGoggles implements IHazardProte
|
||||
@Override
|
||||
@Optional.Method(modid = "gregtech_nh")
|
||||
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
|
||||
return true;
|
||||
return Hazard.STANDARD_HAZARDS.contains(hazard);
|
||||
}
|
||||
}
|
||||
@@ -187,6 +187,6 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing
|
||||
@Override
|
||||
@Optional.Method(modid = "gregtech_nh")
|
||||
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
|
||||
return true;
|
||||
return Hazard.STANDARD_HAZARDS.contains(hazard);
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 484 B |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 509 B After Width: | Height: | Size: 454 B |
|
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 916 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 532 B |
|
Before Width: | Height: | Size: 970 B After Width: | Height: | Size: 950 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 455 B After Width: | Height: | Size: 451 B |
|
Before Width: | Height: | Size: 821 B After Width: | Height: | Size: 748 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 966 B |
|
Before Width: | Height: | Size: 833 B After Width: | Height: | Size: 762 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 853 B After Width: | Height: | Size: 767 B |
|
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 761 B |
|
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 764 B |
|
Before Width: | Height: | Size: 861 B After Width: | Height: | Size: 758 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 854 B After Width: | Height: | Size: 782 B |
|
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 153 B |
|
Before Width: | Height: | Size: 140 B After Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 146 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 476 B |
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 409 B |
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 112 B |
|
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 414 B |
|
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 409 B |
|
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 427 B |
|
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 415 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 612 B After Width: | Height: | Size: 590 B |
|
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 730 B |
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 304 B |