Merge branch '6.1.x' of github.com:BuildCraft/BuildCraft into 6.1.x
This commit is contained in:
commit
4d7bae1358
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
package buildcraft;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
|
@ -531,7 +532,11 @@ public class BuildCraftSilicon extends BuildCraftMod {
|
|||
public void remap(FMLMissingMappingsEvent event) {
|
||||
for (FMLMissingMappingsEvent.MissingMapping mapping: event.get()) {
|
||||
if (mapping.name.equals("BuildCraft|Silicon:null")) {
|
||||
if (mapping.type == GameRegistry.Type.ITEM) {
|
||||
mapping.remap(Item.getItemFromBlock(laserBlock));
|
||||
} else {
|
||||
mapping.remap(laserBlock);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue