Saves the chunks to disk.
()
| 927 | * Saves the chunks to disk. |
| 928 | */ |
| 929 | protected void saveLevel() throws MinecraftException |
| 930 | { |
| 931 | this.checkSessionLock(); |
| 932 | this.worldInfo.setBorderSize(this.getWorldBorder().getDiameter()); |
| 933 | this.worldInfo.getBorderCenterX(this.getWorldBorder().getCenterX()); |
| 934 | this.worldInfo.getBorderCenterZ(this.getWorldBorder().getCenterZ()); |
| 935 | this.worldInfo.setBorderSafeZone(this.getWorldBorder().getDamageBuffer()); |
| 936 | this.worldInfo.setBorderDamagePerBlock(this.getWorldBorder().getDamageAmount()); |
| 937 | this.worldInfo.setBorderWarningDistance(this.getWorldBorder().getWarningDistance()); |
| 938 | this.worldInfo.setBorderWarningTime(this.getWorldBorder().getWarningTime()); |
| 939 | this.worldInfo.setBorderLerpTarget(this.getWorldBorder().getTargetSize()); |
| 940 | this.worldInfo.setBorderLerpTime(this.getWorldBorder().getTimeUntilTarget()); |
| 941 | this.saveHandler.saveWorldInfoWithPlayer(this.worldInfo, this.mcServer.getConfigurationManager().getHostPlayerData()); |
| 942 | this.mapStorage.saveAllData(); |
| 943 | } |
| 944 | |
| 945 | protected void onEntityAdded(Entity entityIn) |
| 946 | { |
no test coverage detected