mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +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;
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
sign.initialize();
|
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