mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-22 10:57:43 +01:00
1.14.4 - Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly Paper Changes: 9fe63a16 Update to 1.14.4 (#2333)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 1d912562ca7ded8150831918d533b2b0d83878cd Mon Sep 17 00:00:00 2001
|
||||
From 38b13b7a3ab0c969150fce2169cb40b9a8255fc1 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Thu, 20 Jun 2019 18:48:58 -0500
|
||||
Subject: [PATCH] Phantoms spawn naturally in the end
|
||||
@@ -11,7 +11,7 @@ Subject: [PATCH] Phantoms spawn naturally in the end
|
||||
4 files changed, 21 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BiomeTheEndHighIsland.java b/src/main/java/net/minecraft/server/BiomeTheEndHighIsland.java
|
||||
index 6592d1529..67cb1520b 100644
|
||||
index e8cf6153ec..b2a8fe3020 100644
|
||||
--- a/src/main/java/net/minecraft/server/BiomeTheEndHighIsland.java
|
||||
+++ b/src/main/java/net/minecraft/server/BiomeTheEndHighIsland.java
|
||||
@@ -4,10 +4,11 @@ public class BiomeTheEndHighIsland extends BiomeBase {
|
||||
@@ -21,14 +21,14 @@ index 6592d1529..67cb1520b 100644
|
||||
- this.a(WorldGenerator.END_CITY, (WorldGenFeatureConfiguration) WorldGenFeatureConfiguration.e);
|
||||
+ this.a(WorldGenerator.END_CITY, WorldGenFeatureConfiguration.e); // Purpur - decompile error
|
||||
this.a(WorldGenStage.Decoration.SURFACE_STRUCTURES, a(WorldGenerator.END_GATEWAY, WorldGenEndGatewayConfiguration.a(WorldProviderTheEnd.f, true), WorldGenDecorator.L, WorldGenFeatureDecoratorConfiguration.e));
|
||||
this.a(WorldGenStage.Decoration.SURFACE_STRUCTURES, a(WorldGenerator.END_CITY, WorldGenFeatureConfiguration.e, WorldGenDecorator.h, WorldGenFeatureDecoratorConfiguration.e));
|
||||
BiomeDecoratorGroups.aq(this);
|
||||
this.a(WorldGenStage.Decoration.VEGETAL_DECORATION, a(WorldGenerator.CHORUS_PLANT, WorldGenFeatureConfiguration.e, WorldGenDecorator.K, WorldGenFeatureDecoratorConfiguration.e));
|
||||
this.a(EnumCreatureType.MONSTER, new BiomeBase.BiomeMeta(EntityTypes.ENDERMAN, 10, 4, 4));
|
||||
+ if (net.pl3x.purpur.PurpurConfig.spawnPhantomsInTheEnd) this.a(EnumCreatureType.MONSTER, new BiomeBase.BiomeMeta(EntityTypes.PHANTOM, 5, 1, 4)); // Purpur
|
||||
}
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityPhantom.java b/src/main/java/net/minecraft/server/EntityPhantom.java
|
||||
index 008f5c6fa..149c64b44 100644
|
||||
index 7496be10a2..836f18a7de 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityPhantom.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityPhantom.java
|
||||
@@ -25,6 +25,12 @@ public class EntityPhantom extends EntityFlying implements IMonster {
|
||||
@@ -54,24 +54,24 @@ index 008f5c6fa..149c64b44 100644
|
||||
this.die();
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
index b442e09eb..3e16cb2bc 100644
|
||||
index 5e6559df0b..490445cefa 100644
|
||||
--- a/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
+++ b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
@@ -75,6 +75,12 @@ public final class SpawnerCreature {
|
||||
if (biomebase_biomemeta.b.d() != EnumCreatureType.MISC) {
|
||||
EntityTypes<?> entitytypes = biomebase_biomemeta.b;
|
||||
@@ -78,6 +78,12 @@ public final class SpawnerCreature {
|
||||
if (biomebase_biomemeta.b.e() != EnumCreatureType.MISC && (biomebase_biomemeta.b.d() || d0 <= 16384.0D)) {
|
||||
EntityTypes<?> entitytypes = biomebase_biomemeta.b;
|
||||
|
||||
+ // Purpur start
|
||||
+ if (net.pl3x.purpur.PurpurConfig.spawnPhantomsInTheEnd && entitytypes == EntityTypes.PHANTOM) {
|
||||
+ blockposition_mutableblockposition.y = 70 + world.random.nextInt(20);
|
||||
+ }
|
||||
+ // Purpur end
|
||||
+ // Purpur start
|
||||
+ if (net.pl3x.purpur.PurpurConfig.spawnPhantomsInTheEnd && entitytypes == EntityTypes.PHANTOM) {
|
||||
+ blockposition_mutableblockposition.y = 70 + world.random.nextInt(20);
|
||||
+ }
|
||||
+ // Purpur end
|
||||
+
|
||||
if (entitytypes.b() && a(chunkgenerator, enumcreaturetype, biomebase_biomemeta, (BlockPosition) blockposition_mutableblockposition)) {
|
||||
EntityPositionTypes.Surface entitypositiontypes_surface = EntityPositionTypes.a(entitytypes);
|
||||
if (entitytypes.b() && a(chunkgenerator, enumcreaturetype, biomebase_biomemeta, (BlockPosition) blockposition_mutableblockposition)) {
|
||||
EntityPositionTypes.Surface entitypositiontypes_surface = EntityPositionTypes.a(entitytypes);
|
||||
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurConfig.java b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
index ad373d20c..233805175 100644
|
||||
index ad373d20c1..233805175f 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
@@ -160,6 +160,11 @@ public class PurpurConfig {
|
||||
|
||||
Reference in New Issue
Block a user