Skip to content

Commit

Permalink
add an error message for skull_skin bork potential
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 21, 2019
1 parent 08971db commit 07bc46f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ public boolean runInCheck(ScriptPath path, Location location) {
}

public boolean runInCheck(ScriptPath path, Location location, String innote) {
if (location == null) {
return false;
}
String it = path.switches.get(innote);
if (it == null) {
int index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2737,6 +2737,9 @@ else if (blockState instanceof Skull) {
}
NMSHandler.getInstance().getBlockHelper().setPlayerProfile((Skull) blockState, profile);
}
else {
Debug.echoError("Unable to set skull_skin on block of type " + material.name() + " with state " + blockState.getClass().getCanonicalName());
}
}

// <--[mechanism]
Expand Down

0 comments on commit 07bc46f

Please sign in to comment.