mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 09:57:43 +01:00
Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly Paper Changes: d6eda567 Provide a useful PluginClassLoader#toString a3fdafbd Restore Serialization Improvements again, wasn't an issue. 0e441c79 Revert "Improve Chat Component Legacy Serialization more" 53ef67b8 Improve Chat Component Legacy Serialization more afc1fcfc Fix serialization of colors from components eaa76a31 Add Villager Tasks to EAR inactive tick to keep behavior 357b52fd Improve Chunk Prioritization / Load Order a76bc402 Improve Chunk Status Transition Speed 7a2b345b Synchronize DataPaletteBlock instead of ReentrantLock
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 4f5c6cd5333bd2f911b097d038ab0b87e0b5a166 Mon Sep 17 00:00:00 2001
|
||||
From 749f0eda4c810b3a7071abfc8337322f9220c3d2 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
||||
Date: Sat, 2 May 2020 20:55:44 -0500
|
||||
Subject: [PATCH] Player invulnerabilities
|
||||
@@ -12,7 +12,7 @@ Subject: [PATCH] Player invulnerabilities
|
||||
5 files changed, 42 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
index 5a64da6a3..265bb0757 100644
|
||||
index 18a74607fc..90305b61fc 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
@@ -131,6 +131,8 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
@@ -22,9 +22,9 @@ index 5a64da6a3..265bb0757 100644
|
||||
+
|
||||
+ this.invulnerableTicks = world.purpurConfig.playerSpawnInvulnerableTicks; // Purpur
|
||||
}
|
||||
|
||||
// Yes, this doesn't match Vanilla, but it's the best we can do for now.
|
||||
@@ -727,6 +729,12 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
// Paper start
|
||||
public BlockPosition getPointInFront(double inFront) {
|
||||
@@ -736,6 +738,12 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ index 5a64da6a3..265bb0757 100644
|
||||
@Override
|
||||
public boolean damageEntity(DamageSource damagesource, float f) {
|
||||
if (this.isInvulnerable(damagesource)) {
|
||||
@@ -734,7 +742,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
@@ -743,7 +751,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
} else {
|
||||
boolean flag = this.server.m() && this.canPvP() && "fall".equals(damagesource.translationIndex);
|
||||
|
||||
@@ -46,7 +46,7 @@ index 5a64da6a3..265bb0757 100644
|
||||
return false;
|
||||
} else {
|
||||
if (damagesource instanceof EntityDamageSource) {
|
||||
@@ -1001,6 +1009,8 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
@@ -1010,6 +1018,8 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
PlayerChangedWorldEvent changeEvent = new PlayerChangedWorldEvent(this.getBukkitEntity(), worldserver.getWorld());
|
||||
this.world.getServer().getPluginManager().callEvent(changeEvent);
|
||||
// CraftBukkit end
|
||||
@@ -55,7 +55,7 @@ index 5a64da6a3..265bb0757 100644
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@@ -1989,9 +1999,17 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
@@ -1998,9 +2008,17 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
|
||||
@Override
|
||||
public boolean isFrozen() { // Paper - protected > public
|
||||
@@ -75,7 +75,7 @@ index 5a64da6a3..265bb0757 100644
|
||||
public Scoreboard getScoreboard() {
|
||||
return getBukkitEntity().getScoreboard().getHandle();
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index d3b4f0bea..2f047d8ec 100644
|
||||
index d3b4f0beaf..2f047d8ec7 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -1530,6 +1530,7 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
||||
@@ -87,7 +87,7 @@ index d3b4f0bea..2f047d8ec 100644
|
||||
this.server.getPluginManager().callEvent(new PlayerResourcePackStatusEvent(getPlayer(), packStatus));
|
||||
// Paper end
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
||||
index 60f3df16e..274270c7a 100644
|
||||
index 1b9d6b2ecb..f749f131f4 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
||||
@@ -824,6 +824,8 @@ public abstract class PlayerList {
|
||||
@@ -100,7 +100,7 @@ index 60f3df16e..274270c7a 100644
|
||||
return entityplayer1;
|
||||
}
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index efdc176e6..81969d2dc 100644
|
||||
index efdc176e64..81969d2dc9 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
@@ -209,6 +209,8 @@ public class PurpurWorldConfig {
|
||||
@@ -122,7 +122,7 @@ index efdc176e6..81969d2dc 100644
|
||||
playerSleepCondition = getString("gameplay-mechanics.player.sleep.condition", playerSleepCondition);
|
||||
useBetterMending = getBoolean("gameplay-mechanics.use-better-mending", useBetterMending);
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||||
index c14493929..a3ffa34e0 100644
|
||||
index c144939291..a3ffa34e0a 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||||
@@ -2095,5 +2095,20 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
Reference in New Issue
Block a user