Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
dcc290167f
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: dea9ce0a SPIGOT-7198: Add Sittable interface to Camel CraftBukkit Changes: eecb4c0dc SPIGOT-7196: Exception loading alternate worlds 0ff61e8fa SPIGOT-7198: Add Sittable interface to Camel 676441aac PR-1121: Handle additional missing SpawnEggs in MetaSpawnEgg e85280e02 Handle missing SpawnEggs in MetaSpawnEgg Spigot Changes: d90018e0 SPIGOT-7199: NPE loading or creating world with custom chunk generator
33 Zeilen
1.6 KiB
Diff
33 Zeilen
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
|
|
Date: Fri, 11 Nov 2022 11:49:40 +0100
|
|
Subject: [PATCH] Reorder bukkit damage source entity for explosion to exclude
|
|
enderdragon part
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
index 446b0e74c406d3d57268d8332ea4c29a4dd5f9eb..e7ce14ab0732034107e735787354a6fb0ec90f54 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
|
@@ -235,8 +235,6 @@ public class Explosion {
|
|
double d13 = (1.0D - d7) * d12;
|
|
|
|
// CraftBukkit start
|
|
- CraftEventFactory.entityDamage = this.source;
|
|
- entity.lastDamageCancelled = false;
|
|
|
|
// Special case ender dragon only give knockback if no damage is cancelled
|
|
// Thinks to note:
|
|
@@ -248,6 +246,11 @@ public class Explosion {
|
|
continue;
|
|
}
|
|
|
|
+ // Paper start - moved from above
|
|
+ CraftEventFactory.entityDamage = this.source;
|
|
+ entity.lastDamageCancelled = false;
|
|
+ // Paper end
|
|
+
|
|
if (entity instanceof EnderDragon) {
|
|
for (EnderDragonPart entityComplexPart : ((EnderDragon) entity).subEntities) {
|
|
if (list.contains(entityComplexPart)) {
|