mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-05 02:09:48 +01:00
Fix script sign NPE
This commit is contained in:
parent
cf362e664b
commit
e62b081ca3
@ -77,6 +77,11 @@ public class ScriptSign extends Passive {
|
||||
@Override
|
||||
public void initialize() {
|
||||
SignScript script = ((DungeonsXL) api).getSignScriptRegistry().get(scriptName);
|
||||
if (script == null) {
|
||||
markAsErroneous("The script \"" + scriptName + "\" could not be found.");
|
||||
return;
|
||||
}
|
||||
|
||||
for (String[] lines : script.getSigns()) {
|
||||
DungeonSign dSign = getGameWorld().createDungeonSign(getSign(), lines);
|
||||
if (dSign.isErroneous()) {
|
||||
|
Loading…
Reference in New Issue
Block a user