Commit f79f4727 authored by bozimmerman's avatar bozimmerman

More forgiving plane names.

git-svn-id: svn://192.168.1.10/public/CoffeeMud@15486 0d6f1817-ed0e-0410-87c9-987e46238f29
parent 206dd311
......@@ -1174,6 +1174,9 @@ public class PlanarAbility extends StdAbility
return false;
}
String planeName=CMParms.combine(commands,0).trim().toUpperCase();
int planeNameCt=0;
while((getPlane(planeName)==null)&&(commands.size()>planeNameCt))
planeName=CMParms.combine(commands,++planeNameCt).trim().toUpperCase();
oldRoom=new WeakReference<Room>(mob.location());
Area cloneArea = mob.location().getArea();
final Area mobArea = cloneArea;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment