mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
When an exception is actually being used it shouldn't be named ignored
This commit is contained in:
parent
e5da93f359
commit
cc9c1f63d8
@ -30,8 +30,8 @@ import static com.github.intellectualsites.plotsquared.plot.util.ReflectionUtils
|
|||||||
this.methodGetHandleChunk = classCraftChunk.getMethod("getHandle").getRealMethod();
|
this.methodGetHandleChunk = classCraftChunk.getMethod("getHandle").getRealMethod();
|
||||||
try {
|
try {
|
||||||
this.mustSave = classChunk.getField("mustSave").getRealField();
|
this.mustSave = classChunk.getField("mustSave").getRealField();
|
||||||
} catch (Throwable ignore) {
|
} catch (NoSuchFieldException e) {
|
||||||
ignore.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
Bukkit.getPluginManager().registerEvents(this, plugin);
|
Bukkit.getPluginManager().registerEvents(this, plugin);
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ public class PlotVersion {
|
|||||||
public static PlotVersion tryParse(String version, String commit, String date) {
|
public static PlotVersion tryParse(String version, String commit, String date) {
|
||||||
try {
|
try {
|
||||||
return new PlotVersion(version, commit, date);
|
return new PlotVersion(version, commit, date);
|
||||||
} catch (Exception ignore) {
|
} catch (Exception e) {
|
||||||
ignore.printStackTrace();
|
e.printStackTrace();
|
||||||
return new PlotVersion(0, 0, 0, 0, 0);
|
return new PlotVersion(0, 0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user