mirror of
https://github.com/GTNewHorizons/WailaHarvestability.git
synced 2026-11-27 23:32:55 +00:00
Fix GregTech harvestability info
* The disguise code was getting in the way * Fixes #28
This commit is contained in:
1 parent
a5c57f68b3
commit
97cb98247f
2 files changed
+27
-8
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package squeek.wailaharvestability.proxy;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class ProxyGregTech
|
||||
{
|
||||
public static final String modID = "gregtech";
|
||||
public static final String oreBlockID = "gt.blockores";
|
||||
public static final String oreBlockUniqueIdentifier = modID + ":" + oreBlockID;
|
||||
public static boolean isModLoaded = Loader.isModLoaded(modID);
|
||||
|
||||
public static boolean isOreBlock(Block block)
|
||||
{
|
||||
return isModLoaded && GameRegistry.findUniqueIdentifierFor(block).toString().equals(oreBlockUniqueIdentifier);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user