Set script sign to air if initialized signs require it to be set to air

This commit is contained in:
Daniel Saukel 2020-10-24 19:04:25 +02:00
parent 9167face12
commit f7ee1f591c

View File

@ -91,6 +91,9 @@ public class ScriptSign extends Passive {
try {
dSign.initialize();
if (dSign.isSetToAir()) {
dSign.setToAir();
}
} catch (Exception exception) {
dSign.markAsErroneous("An error occurred while initializing a sign of the type " + dSign.getName()
+ ". This is not a user error. Please report the following stacktrace to the developer of the plugin:");