mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Enable hardcore support. Fixes BUKKIT-2259
- Hardcore requires a newly generated world - You will be banned if you die in a hardcore world - You will NOT be banned if you die in a non-vanilla world - Your "heart container" will not change without logging back in. (Vanilla bug)
This commit is contained in:
parent
aa92f0e313
commit
8748c8c757
@ -161,7 +161,7 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
|
|||||||
String name = (dimension == 0) ? s : s + "_" + worldType;
|
String name = (dimension == 0) ? s : s + "_" + worldType;
|
||||||
|
|
||||||
org.bukkit.generator.ChunkGenerator gen = this.server.getGenerator(name);
|
org.bukkit.generator.ChunkGenerator gen = this.server.getGenerator(name);
|
||||||
WorldSettings worldsettings = new WorldSettings(i, this.getGamemode(), this.getGenerateStructures(), false, worldtype);
|
WorldSettings worldsettings = new WorldSettings(i, this.getGamemode(), this.getGenerateStructures(), this.isHardcore(), worldtype);
|
||||||
|
|
||||||
if (j == 0) {
|
if (j == 0) {
|
||||||
if (this.L()) { // Strip out DEMO?
|
if (this.L()) { // Strip out DEMO?
|
||||||
|
Loading…
Reference in New Issue
Block a user