Skip to content

Commit

Permalink
Fixed ClassCastException in Elevator
Browse files Browse the repository at this point in the history
Signed-off-by: me4502 <mnmiller1@hotmail.com>
  • Loading branch information
me4502 committed Nov 12, 2012
1 parent 1315f60 commit 5ac42fe
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -267,6 +267,8 @@ private void makeItSo(LocalPlayer player) {
// Now, we want to read the sign so we can tell the player
// his or her floor, but as that may not be avilable, we can
// just print a generic message
if(!(destination.getState() instanceof Sign))
return;
String title = ((Sign) destination.getState()).getLines()[0];
if (title.length() != 0) {
player.print(player.translate("mech.lift.floor") + ": " + title);
Expand Down

0 comments on commit 5ac42fe

Please sign in to comment.