Max mapheight is 2x default
This commit is contained in:
parent
9bd193df72
commit
d8125eb0d2
@ -28,7 +28,7 @@ public class CmdMapHeight extends FCommand {
|
|||||||
int height = argAsInt(0);
|
int height = argAsInt(0);
|
||||||
|
|
||||||
fme.setMapHeight(height);
|
fme.setMapHeight(height);
|
||||||
fme.sendMessage(TL.COMMAND_MAPHEIGHT_SET.format(height));
|
fme.sendMessage(TL.COMMAND_MAPHEIGHT_SET.format(fme.getMapHeight()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -921,7 +921,7 @@ public abstract class MemoryFPlayer implements FPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setMapHeight(int height) {
|
public void setMapHeight(int height) {
|
||||||
this.mapHeight = height;
|
this.mapHeight = height > Conf.mapHeight * 2 ? Conf.mapHeight * 2 : height;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameAndTitle(FPlayer fplayer) {
|
public String getNameAndTitle(FPlayer fplayer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user