mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Don't kill the game if one sign does not work
This commit is contained in:
parent
6cd389c33e
commit
cf362e664b
@ -418,7 +418,13 @@ public class DGameWorld extends DInstanceWorld implements GameWorld {
|
|||||||
if (sign == null || sign.isOnDungeonInit()) {
|
if (sign == null || sign.isOnDungeonInit()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
sign.initialize();
|
try {
|
||||||
|
sign.initialize();
|
||||||
|
} catch (Exception exception) {
|
||||||
|
sign.markAsErroneous("An error occurred while initializing a sign of the type " + sign.getName()
|
||||||
|
+ ". This is not a user error. Please report the following stacktrace to the developer of the plugin:");
|
||||||
|
exception.printStackTrace();
|
||||||
|
}
|
||||||
if (sign.isErroneous()) {
|
if (sign.isErroneous()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user