Skip to content

Commit

Permalink
Update for Buildcraft 7.99.14
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Jan 14, 2018
1 parent 5009214 commit 9670e67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}
apply plugin: 'net.minecraftforge.gradle.forge'

version = "6.0.0.2"
version = "6.0.0.3"
group= "com.buildcraft.additionalpipes"
archivesBaseName = "additionalpipes"

Expand Down Expand Up @@ -43,7 +43,7 @@ repositories {
}

dependencies {
compile name: 'buildcraft', version: "7.99.13", classifier: "dev", ext: 'jar'
compile name: 'buildcraft', version: "7.99.14", classifier: "dev", ext: 'jar'

// compile against the JEI API but do not include it at runtime
deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api"
Expand Down
9 changes: 3 additions & 6 deletions src/main/java/buildcraft/additionalpipes/AdditionalPipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
public class AdditionalPipes {
public static final String MODID = "additionalpipes";
public static final String NAME = "Additional Pipes";
public static final String VERSION = "6.0.0.2";
public static final String VERSION = "6.0.0.3";

@Instance(MODID)
public static AdditionalPipes instance;
Expand Down Expand Up @@ -99,11 +99,8 @@ public void preInit(FMLPreInitializationEvent event)
StatementManager.registerTriggerProvider(new GateProvider());

// create blocks
if(APConfiguration.enableChunkloaderRecipe)
{
blockTeleportTether = new BlockTeleportTether();
blockTeleportTether.setRegistryName("teleport_tether");
}
blockTeleportTether = new BlockTeleportTether();
blockTeleportTether.setRegistryName("teleport_tether");

}

Expand Down
12 changes: 4 additions & 8 deletions src/main/java/buildcraft/additionalpipes/utils/PipeCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import buildcraft.api.transport.pipe.PipeDefinition;
import buildcraft.lib.registry.RegistrationHelper;
import buildcraft.lib.registry.TagManager;
import buildcraft.transport.item.ItemPipeHolder;

public class PipeCreator
Expand Down Expand Up @@ -45,13 +44,10 @@ public static ItemPipeHolder createPipeItemAndRecipe(int output, PipeDefinition
* @return
*/
public static ItemPipeHolder createPipeItem(PipeDefinition pipeDef)
{
TagManager.registerTag("item.pipe.additionalpipes." + pipeDef.identifier.getResourcePath())
.reg(pipeDef.identifier.getResourcePath())
.locale("pipe.ap." + pipeDef.identifier.getResourcePath())
.tab("apcreativetab");

ItemPipeHolder item = new ItemPipeHolder(pipeDef);
{
ItemPipeHolder item = ItemPipeHolder.create(pipeDef);
item.setRegistryName(pipeDef.identifier.getResourcePath());
item.setUnlocalizedName("pipe.ap." + pipeDef.identifier.getResourcePath());
item.registerWithPipeApi();

regHelper.addItem(item);
Expand Down

0 comments on commit 9670e67

Please sign in to comment.