mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-12 04:57:31 +00:00
MFQM fix
This commit is contained in:
1 file changed
+7
-6
@@ -10,12 +10,6 @@ import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
@Mixin(value = MFQM.class,
|
||||
remap = false)
|
||||
public abstract class MFQMMixin {
|
||||
@ModifyConstant(method = "preInit",
|
||||
constant = {@Constant(intValue = VanillaConstants.maxBlockID), @Constant(intValue = 31999)},
|
||||
require = 2)
|
||||
private int extendWatchableIDLimit(int constant) {
|
||||
return ExtendedConstants.maxBlockID;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "preInit",
|
||||
constant = @Constant(stringValue = "Must be different in range between 20 and 31"),
|
||||
@@ -24,4 +18,11 @@ public abstract class MFQMMixin {
|
||||
return constant +
|
||||
" (Notice from EndlessIDs: If you enable the ExtendDataWatcher config option in the endlessids config file, the maximum value will be 127 instead, same for the other datawatcher ids in this file)";
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "postInit",
|
||||
constant = {@Constant(intValue = VanillaConstants.maxBlockID), @Constant(intValue = 31999)},
|
||||
require = 2)
|
||||
private int extendIDs(int constant) {
|
||||
return ExtendedConstants.maxBlockID;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user