Skip to content

Commit

Permalink
Merge pull request #41 from GTNewHorizons/rename
Browse files Browse the repository at this point in the history
update gt and rename
  • Loading branch information
boubou19 authored Sep 3, 2024
2 parents 7040128 + 5d4ac60 commit 3ee62ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
compileOnly("com.github.GTNewHorizons:Hodgepodge:2.5.36:dev") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.48.97:dev") {
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.49.56:dev") {
transitive = false
}

Expand Down
10 changes: 5 additions & 5 deletions src/main/java/fox/spiteful/avaritia/blocks/BlockResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import fox.spiteful.avaritia.Avaritia;
import gregtech.api.GregTech_API;
import gregtech.api.GregTechAPI;

public class BlockResource extends Block {

Expand Down Expand Up @@ -71,16 +71,16 @@ public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity
@Override
@Optional.Method(modid = "gregtech")
public void onBlockAdded(World aWorld, int aX, int aY, int aZ) {
if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
if (GregTechAPI.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
GregTechAPI.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}

@Override
@Optional.Method(modid = "gregtech")
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
if (GregTechAPI.isMachineBlock(this, aMetaData)) {
GregTechAPI.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
}

0 comments on commit 3ee62ee

Please sign in to comment.