mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Fix #128 Make plugins for Buildcraft only available for 6.0.x, not 6.1.x
This commit is contained in:
1 parent
b38ca33c72
commit
17ec7edcf5
2 files changed
+4
-3
No files matched your search
@@ -53,6 +53,7 @@ public class PluginBuildCraft implements IPlugin, ITriggerProvider {
|
||||
public static Item wrench;
|
||||
public static Item stoneGear;
|
||||
public static Item pipeWaterproof;
|
||||
public static final String validVersionRange = "[6.0.0,6.1.0)";
|
||||
|
||||
public PluginBuildCraft() {
|
||||
if (PluginBuildCraft.instance == null)
|
||||
@@ -64,7 +65,7 @@ public class PluginBuildCraft implements IPlugin, ITriggerProvider {
|
||||
*/
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return (Proxies.common.isModLoaded("BuildCraft|Core") && Proxies.common.isModLoaded("BuildCraft|Transport"));
|
||||
return (Proxies.common.isModLoaded("BuildCraft|Core", validVersionRange) && Proxies.common.isModLoaded("BuildCraft|Transport", validVersionRange));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user