Max mapheight is 2x default

This commit is contained in:
Trent Hensler 2018-02-10 17:03:31 -08:00
parent 9bd193df72
commit d8125eb0d2
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class CmdMapHeight extends FCommand {
int height = argAsInt(0);
fme.setMapHeight(height);
fme.sendMessage(TL.COMMAND_MAPHEIGHT_SET.format(height));
fme.sendMessage(TL.COMMAND_MAPHEIGHT_SET.format(fme.getMapHeight()));
}
@Override

View File

@ -921,7 +921,7 @@ public abstract class MemoryFPlayer implements FPlayer {
}
public void setMapHeight(int height) {
this.mapHeight = height;
this.mapHeight = height > Conf.mapHeight * 2 ? Conf.mapHeight * 2 : height;
}
public String getNameAndTitle(FPlayer fplayer) {