update for extensions
This commit is contained in:
1 parent
b3fc8de75b
commit
dc0dc9e406
4 files changed
+5
-17
No files matched your search
@@ -26,7 +26,7 @@ import static carpet.settings.RuleCategory.SURVIVAL;
|
||||
|
||||
public class CarpetSettings
|
||||
{
|
||||
public static final String carpetVersion = "v190707";
|
||||
public static final String carpetVersion = "v190714";
|
||||
public static final Logger LOG = LogManager.getLogger();
|
||||
public static boolean skipGenerationChecks = false;
|
||||
public static boolean impendingFillSkipUpdates = false;
|
||||
|
||||
@@ -44,12 +44,7 @@ public abstract class Validator<T>
|
||||
@Override
|
||||
public T validate(ServerCommandSource source, ParsedRule<T> currentRule, T newValue, String string)
|
||||
{
|
||||
if (source != null)
|
||||
try
|
||||
{
|
||||
Messenger.m(source, "r "+currentRule.name+" is missing a few bits - we are still working on it.");
|
||||
}
|
||||
catch (NullPointerException ignored) { }
|
||||
Messenger.m(source, "r "+currentRule.name+" is missing a few bits - we are still working on it.");
|
||||
return newValue;
|
||||
}
|
||||
@Override
|
||||
@@ -62,14 +57,7 @@ public abstract class Validator<T>
|
||||
{
|
||||
if (!currentRule.options.contains(string.toLowerCase(Locale.ROOT)))
|
||||
{
|
||||
if (source != null)
|
||||
try
|
||||
{
|
||||
Messenger.m(source, "r Valid options: " + currentRule.options.toString());
|
||||
}
|
||||
catch (NullPointerException ignored)
|
||||
{
|
||||
}
|
||||
Messenger.m(source, "r Valid options: " + currentRule.options.toString());
|
||||
return null;
|
||||
}
|
||||
return newValue;
|
||||
|
||||
Reference in new issue
Block a user