mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-20 12:19:39 +00:00
update gt and rename
This commit is contained in:
1 parent
70401286e1
commit
5d4ac608ee
2 files changed
+6
-6
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import cpw.mods.fml.common.Optional;
|
||||
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 {
|
||||
|
||||
@@ -71,16 +71,16 @@ public class BlockResource extends Block {
|
||||
@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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user