Skip to content

Commit 7d7ae7b

Browse files
Updated Upstream (Bukkit/CraftBukkit/Spigot) (#7246)
1 parent d9fb602 commit 7d7ae7b

File tree

60 files changed

+306
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+306
-223
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Jake Potrebic <jake.m.potrebic@gmail.com>
3+
Date: Wed, 5 Jan 2022 12:12:58 -0800
4+
Subject: [PATCH] Remove upstream snakeyaml fix
5+
6+
See Server Patch: Fix saving configs with more long comments
7+
8+
diff --git a/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java b/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
9+
index df250bf41463c57b3ec7c288e134460a2295eed5..2159e7a49ed1bc01533e67ac9f6917801ec963e3 100644
10+
--- a/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
11+
+++ b/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
12+
@@ -65,7 +65,7 @@ public class YamlConfiguration extends FileConfiguration {
13+
yamlLoaderOptions = new LoaderOptions();
14+
yamlLoaderOptions.setMaxAliasesForCollections(Integer.MAX_VALUE); // SPIGOT-5881: Not ideal, but was default pre SnakeYAML 1.26
15+
16+
- yaml = new BukkitYaml(constructor, representer, yamlDumperOptions, yamlLoaderOptions);
17+
+ yaml = new /*BukkitYaml*/Yaml(constructor, representer, yamlDumperOptions, yamlLoaderOptions); // Paper - don't use upstream BukkitYaml fix, add the whole snakeyaml Emitter class itself with the fix
18+
}
19+
20+
@NotNull
21+
diff --git a/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java b/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java
22+
index a0ff42abd3ced3513ee3343e14d5068cc5dd4532..9dd844fde37fe47b51cd30092e86b5b41a2344ef 100644
23+
--- a/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java
24+
+++ b/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java
25+
@@ -146,6 +146,7 @@ public class YamlConfigurationTest extends FileConfigurationTest {
26+
}
27+
28+
@Test
29+
+ @org.junit.Ignore // Paper - ignore test because our fix doesn't work in testing environment
30+
public void test100Comments() throws InvalidConfigurationException {
31+
StringBuilder commentBuilder = new StringBuilder();
32+
for (int i = 0; i < 100; i++) {

patches/server/0010-Timings-v2.patch

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ index 4dd57007af218ba1c0e666117a49939c5884f2c6..a6cb949b6f048455acc50c897fdd93d3
10411041
}
10421042

10431043
diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java
1044-
index f3a2a5dcd18d8abe370779f75106eacab498c3b6..67113f1bb622acde89c05d1ee0af88644f67e776 100644
1044+
index ae93a5bd184e084720400a44a3d9b14910343333..d2f59b13121f1d105837e0a52be4aca5d110c15c 100644
10451045
--- a/src/main/java/net/minecraft/server/level/ChunkMap.java
10461046
+++ b/src/main/java/net/minecraft/server/level/ChunkMap.java
10471047
@@ -1,8 +1,10 @@
@@ -1217,7 +1217,7 @@ index be11caf7c0dcdb11e24cfb053cda45ac1867da63..8f5e9f1bdfd2e02512e1341f91b147b1
12171217
}
12181218

12191219
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
1220-
index ce9ff034a281cd9cc76c26713b6d1eab3f6c9fe2..ae090f58bec25270e55f8da37355351783e69a7f 100644
1220+
index 073cea951644f25c276ba05ff1fc48fda08593da..c7fe4b6aa8d68bd5dc394752a5ae635eb46c5f31 100644
12211221
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
12221222
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
12231223
@@ -1,6 +1,8 @@
@@ -1412,7 +1412,7 @@ index 8e4325abb2dda74c38b17bb27f9dcfcf97ba2de6..1be4b3ad18d314b0460ce61e01afd0d7
14121412

14131413
public UserWhiteList getWhiteList() {
14141414
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
1415-
index fdf607c91ee31206839b14212a20ee81ec751776..3eb1f5e422002a48651a24d0e70884bf54de717e 100644
1415+
index efb347d1a8ac45b13e1abfa712cbd204c64501ae..668fcdf95c92b439612d98f224ae4ac9bd055bdf 100644
14161416
--- a/src/main/java/net/minecraft/world/entity/Entity.java
14171417
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
14181418
@@ -125,7 +125,6 @@ import org.bukkit.craftbukkit.event.CraftPortalEvent;
@@ -1424,7 +1424,7 @@ index fdf607c91ee31206839b14212a20ee81ec751776..3eb1f5e422002a48651a24d0e70884bf
14241424
import org.bukkit.event.hanging.HangingBreakByEntityEvent;
14251425
import org.bukkit.event.vehicle.VehicleBlockCollisionEvent;
14261426
@@ -286,7 +285,6 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, i
1427-
public boolean forceExplosionKnockback; // SPIGOT-949
1427+
public boolean lastDamageCancelled; // SPIGOT-5339, SPIGOT-6252, SPIGOT-6777: Keep track if the event was canceled
14281428
public boolean persistentInvisibility = false;
14291429
public BlockPos lastLavaContact;
14301430
- public CustomTimingsHandler tickTimer = org.bukkit.craftbukkit.SpigotTimings.getEntityTimings(this); // Spigot
@@ -1504,7 +1504,7 @@ index e688949fc2f3031dc9c9817bc59554e9f5a436af..20cfdba68c200e87d00995a6a4e25a5f
15041504
}
15051505

15061506
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
1507-
index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729c1d9b28c 100644
1507+
index 5669d868f764dcdea8c510fc902cadea226ce473..46b40b08916369f8aa8b28144f07c48741c45101 100644
15081508
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
15091509
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
15101510
@@ -137,7 +137,7 @@ import org.bukkit.event.entity.EntityTeleportEvent;
@@ -1516,15 +1516,15 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15161516

15171517
public abstract class LivingEntity extends Entity {
15181518

1519-
@@ -2761,7 +2761,6 @@ public abstract class LivingEntity extends Entity {
1519+
@@ -2760,7 +2760,6 @@ public abstract class LivingEntity extends Entity {
15201520

15211521
@Override
15221522
public void tick() {
15231523
- SpigotTimings.timerEntityBaseTick.startTiming(); // Spigot
15241524
super.tick();
15251525
this.updatingUsingItem();
15261526
this.updateSwimAmount();
1527-
@@ -2802,9 +2801,7 @@ public abstract class LivingEntity extends Entity {
1527+
@@ -2801,9 +2800,7 @@ public abstract class LivingEntity extends Entity {
15281528
}
15291529
}
15301530

@@ -1534,7 +1534,7 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15341534
double d0 = this.getX() - this.xo;
15351535
double d1 = this.getZ() - this.zo;
15361536
float f = (float) (d0 * d0 + d1 * d1);
1537-
@@ -2884,8 +2881,6 @@ public abstract class LivingEntity extends Entity {
1537+
@@ -2883,8 +2880,6 @@ public abstract class LivingEntity extends Entity {
15381538
if (this.isSleeping()) {
15391539
this.setXRot(0.0F);
15401540
}
@@ -1543,23 +1543,23 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15431543
}
15441544

15451545
public void detectEquipmentUpdates() {
1546-
@@ -3067,7 +3062,6 @@ public abstract class LivingEntity extends Entity {
1546+
@@ -3066,7 +3061,6 @@ public abstract class LivingEntity extends Entity {
15471547

15481548
this.setDeltaMovement(d4, d5, d6);
15491549
this.level.getProfiler().push("ai");
15501550
- SpigotTimings.timerEntityAI.startTiming(); // Spigot
15511551
if (this.isImmobile()) {
15521552
this.jumping = false;
15531553
this.xxa = 0.0F;
1554-
@@ -3077,7 +3071,6 @@ public abstract class LivingEntity extends Entity {
1554+
@@ -3076,7 +3070,6 @@ public abstract class LivingEntity extends Entity {
15551555
this.serverAiStep();
15561556
this.level.getProfiler().pop();
15571557
}
15581558
- SpigotTimings.timerEntityAI.stopTiming(); // Spigot
15591559

15601560
this.level.getProfiler().pop();
15611561
this.level.getProfiler().push("jump");
1562-
@@ -3112,9 +3105,9 @@ public abstract class LivingEntity extends Entity {
1562+
@@ -3111,9 +3104,9 @@ public abstract class LivingEntity extends Entity {
15631563
this.updateFallFlying();
15641564
AABB axisalignedbb = this.getBoundingBox();
15651565

@@ -1571,7 +1571,7 @@ index e9e97cf0b202c84252fb3bada97890198fcc6bb9..2a65e7ae49f2fc1d56cdace60f72b729
15711571
this.level.getProfiler().pop();
15721572
this.level.getProfiler().push("freezing");
15731573
boolean flag1 = this.getType().is(EntityTypeTags.FREEZE_HURTS_EXTRA_TYPES);
1574-
@@ -3143,9 +3136,7 @@ public abstract class LivingEntity extends Entity {
1574+
@@ -3142,9 +3135,7 @@ public abstract class LivingEntity extends Entity {
15751575
this.checkAutoSpinAttack(axisalignedbb, this.getBoundingBox());
15761576
}
15771577

@@ -2145,10 +2145,10 @@ index 8cb510615bc8b4638b4aadfd9732c9a3d65b1fac..e0ba1608d83c6007717df3323b916a92
21452145
* This helper class represents the different NBT Tags.
21462146
* <p>
21472147
diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
2148-
index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396ffddc2f3 100644
2148+
index a7675df12d509ae0ff585566b395165f55f8a8cf..38cf408899cef72bc9d2888109a7ac7ce0aec638 100644
21492149
--- a/src/main/java/org/spigotmc/ActivationRange.java
21502150
+++ b/src/main/java/org/spigotmc/ActivationRange.java
2151-
@@ -28,7 +28,7 @@ import net.minecraft.world.entity.projectile.ThrownTrident;
2151+
@@ -27,7 +27,7 @@ import net.minecraft.world.entity.projectile.ThrownTrident;
21522152
import net.minecraft.world.entity.raid.Raider;
21532153
import net.minecraft.world.level.Level;
21542154
import net.minecraft.world.phys.AABB;
@@ -2157,7 +2157,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21572157

21582158
public class ActivationRange
21592159
{
2160-
@@ -72,8 +72,8 @@ public class ActivationRange
2160+
@@ -71,8 +71,8 @@ public class ActivationRange
21612161
/**
21622162
* These entities are excluded from Activation range checks.
21632163
*
@@ -2168,7 +2168,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21682168
* @return boolean If it should always tick.
21692169
*/
21702170
public static boolean initializeEntityActivationState(Entity entity, SpigotWorldConfig config)
2171-
@@ -108,7 +108,7 @@ public class ActivationRange
2171+
@@ -107,7 +107,7 @@ public class ActivationRange
21722172
*/
21732173
public static void activateEntities(Level world)
21742174
{
@@ -2177,7 +2177,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21772177
final int miscActivationRange = world.spigotConfig.miscActivationRange;
21782178
final int raiderActivationRange = world.spigotConfig.raiderActivationRange;
21792179
final int animalActivationRange = world.spigotConfig.animalActivationRange;
2180-
@@ -131,7 +131,7 @@ public class ActivationRange
2180+
@@ -134,7 +134,7 @@ public class ActivationRange
21812181

21822182
world.getEntities().get(maxBB, ActivationRange::activateEntity);
21832183
}
@@ -2186,7 +2186,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21862186
}
21872187

21882188
/**
2189-
@@ -226,10 +226,8 @@ public class ActivationRange
2189+
@@ -229,10 +229,8 @@ public class ActivationRange
21902190
*/
21912191
public static boolean checkIfActive(Entity entity)
21922192
{
@@ -2197,7 +2197,7 @@ index 67f4ebf30d752fdc595fc847d695d8dad0e805d8..af66bb6b3733eaf722838de8b9f45396
21972197
return true;
21982198
}
21992199

2200-
@@ -253,7 +251,6 @@ public class ActivationRange
2200+
@@ -256,7 +254,6 @@ public class ActivationRange
22012201
{
22022202
isActive = false;
22032203
}

patches/server/0031-Always-tick-falling-blocks.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Always tick falling blocks
55

66

77
diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
8-
index af66bb6b3733eaf722838de8b9f45396ffddc2f3..c3b7b1bc978eb0d40587682795e86b82981aed82 100644
8+
index 38cf408899cef72bc9d2888109a7ac7ce0aec638..07e5ece37af6b02210920ce6cc31738274d447a9 100644
99
--- a/src/main/java/org/spigotmc/ActivationRange.java
1010
+++ b/src/main/java/org/spigotmc/ActivationRange.java
11-
@@ -90,6 +90,7 @@ public class ActivationRange
11+
@@ -89,6 +89,7 @@ public class ActivationRange
1212
|| entity instanceof AbstractHurtingProjectile
1313
|| entity instanceof LightningBolt
1414
|| entity instanceof PrimedTnt

patches/server/0033-Fix-lag-from-explosions-processing-dead-entities.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Fix lag from explosions processing dead entities
55

66

77
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
8-
index a0e364c3f6d5c513c8b37de60ced9ef6433b6cda..996e02be9f3150ba125d52e3d544599c2b8dd968 100644
8+
index d2060ba62bebafce409e5ac64868abc5a5f98bcc..047864651dfbf009b66706e5cb0dd3d1749424bc 100644
99
--- a/src/main/java/net/minecraft/world/level/Explosion.java
1010
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
11-
@@ -207,7 +207,7 @@ public class Explosion {
11+
@@ -208,7 +208,7 @@ public class Explosion {
1212
int i1 = Mth.floor(this.y + (double) f2 + 1.0D);
1313
int j1 = Mth.floor(this.z - (double) f2 - 1.0D);
1414
int k1 = Mth.floor(this.z + (double) f2 + 1.0D);

patches/server/0034-Optimize-explosions.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ index b86ceda8f7376334987955095234bdecec5af414..9d6daeba112e68c64c2b5d7d0c771776
3737

3838
this.profiler.popPush("connection");
3939
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
40-
index 996e02be9f3150ba125d52e3d544599c2b8dd968..688ebb68209beb4550293f72b1fa7b39852be453 100644
40+
index 047864651dfbf009b66706e5cb0dd3d1749424bc..a901ce351c484820a8ca95889125e561023d9b31 100644
4141
--- a/src/main/java/net/minecraft/world/level/Explosion.java
4242
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
43-
@@ -226,7 +226,7 @@ public class Explosion {
43+
@@ -227,7 +227,7 @@ public class Explosion {
4444
d8 /= d11;
4545
d9 /= d11;
4646
d10 /= d11;
@@ -49,7 +49,7 @@ index 996e02be9f3150ba125d52e3d544599c2b8dd968..688ebb68209beb4550293f72b1fa7b39
4949
double d13 = (1.0D - d7) * d12;
5050

5151
// CraftBukkit start
52-
@@ -444,4 +444,84 @@ public class Explosion {
52+
@@ -465,4 +465,84 @@ public class Explosion {
5353

5454
private BlockInteraction() {}
5555
}
@@ -135,7 +135,7 @@ index 996e02be9f3150ba125d52e3d544599c2b8dd968..688ebb68209beb4550293f72b1fa7b39
135135
+ // Paper end
136136
}
137137
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
138-
index 8a2d18524e089cdc07125e424b37f1b629e591a6..4c049a41035824a9affdf25495a658a0c58dcd75 100644
138+
index cb115128ac988dc4b58f452532644dd8fcf37d4c..16f212b4005469dc99fdd83ed6e5810a5b6f8abf 100644
139139
--- a/src/main/java/net/minecraft/world/level/Level.java
140140
+++ b/src/main/java/net/minecraft/world/level/Level.java
141141
@@ -156,6 +156,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {

patches/server/0035-Disable-explosion-knockback.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@ index 2b0a75dc2e292e655ca3300f64bc1211b3adeceb..5cae4a5caf9aba8c0e99f1cb6badc5e8
1919
+ }
2020
}
2121
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
22-
index 906c23068d1f5be76a6985b7255f6f155335b673..deef28110441cd2965c6b531bc255ee2aa994ace 100644
22+
index 46b40b08916369f8aa8b28144f07c48741c45101..7365ff9a52ddc302a68002a48c60ce526fcd547b 100644
2323
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
2424
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
25-
@@ -1375,6 +1375,7 @@ public abstract class LivingEntity extends Entity {
25+
@@ -1374,6 +1374,7 @@ public abstract class LivingEntity extends Entity {
2626
}
2727
}
2828

2929
+ boolean knockbackCancelled = level.paperConfig.disableExplosionKnockback && source.isExplosion() && this instanceof net.minecraft.world.entity.player.Player; // Paper - Disable explosion knockback
3030
if (flag1) {
3131
if (flag) {
3232
this.level.broadcastEntityEvent(this, (byte) 29);
33-
@@ -1395,6 +1396,7 @@ public abstract class LivingEntity extends Entity {
33+
@@ -1394,6 +1395,7 @@ public abstract class LivingEntity extends Entity {
3434
b0 = 2;
3535
}
3636

3737
+ if (!knockbackCancelled) // Paper - Disable explosion knockback
3838
this.level.broadcastEntityEvent(this, b0);
3939
}
4040

41-
@@ -1418,6 +1420,7 @@ public abstract class LivingEntity extends Entity {
41+
@@ -1417,6 +1419,7 @@ public abstract class LivingEntity extends Entity {
4242
}
4343
}
4444

@@ -47,10 +47,10 @@ index 906c23068d1f5be76a6985b7255f6f155335b673..deef28110441cd2965c6b531bc255ee2
4747
if (!this.checkTotemDeathProtection(source)) {
4848
SoundEvent soundeffect = this.getDeathSound();
4949
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
50-
index 688ebb68209beb4550293f72b1fa7b39852be453..32c8403d6a5f5fbd52679b12b07936147744b8a4 100644
50+
index a901ce351c484820a8ca95889125e561023d9b31..09f17a7f4f78b09a44a6486923060623478a2b5e 100644
5151
--- a/src/main/java/net/minecraft/world/level/Explosion.java
5252
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
53-
@@ -241,14 +241,14 @@ public class Explosion {
53+
@@ -262,14 +262,14 @@ public class Explosion {
5454
double d14 = d13;
5555

5656
if (entity instanceof LivingEntity) {

patches/server/0068-Custom-replacement-for-eaten-items.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Custom replacement for eaten items
55

66

77
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
8-
index 09cea6b92aa8a0b60716163b7bda61823268bed7..76da306041b61f6c93e6f58f580054af7dfc234e 100644
8+
index c4bfeffbfefcb77c7727cb8466eb20c8ca0f2956..cb611587ad1b929627576a330e398d980595c48a 100644
99
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
1010
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
11-
@@ -3564,9 +3564,10 @@ public abstract class LivingEntity extends Entity {
11+
@@ -3563,9 +3563,10 @@ public abstract class LivingEntity extends Entity {
1212
this.triggerItemUseEffects(this.useItem, 16);
1313
// CraftBukkit start - fire PlayerItemConsumeEvent
1414
ItemStack itemstack;
@@ -20,7 +20,7 @@ index 09cea6b92aa8a0b60716163b7bda61823268bed7..76da306041b61f6c93e6f58f580054af
2020
level.getCraftServer().getPluginManager().callEvent(event);
2121

2222
if (event.isCancelled()) {
23-
@@ -3580,6 +3581,13 @@ public abstract class LivingEntity extends Entity {
23+
@@ -3579,6 +3580,13 @@ public abstract class LivingEntity extends Entity {
2424
} else {
2525
itemstack = this.useItem.finishUsingItem(this.level, this);
2626
}
@@ -34,7 +34,7 @@ index 09cea6b92aa8a0b60716163b7bda61823268bed7..76da306041b61f6c93e6f58f580054af
3434
// CraftBukkit end
3535

3636
if (itemstack != this.useItem) {
37-
@@ -3587,6 +3595,11 @@ public abstract class LivingEntity extends Entity {
37+
@@ -3586,6 +3594,11 @@ public abstract class LivingEntity extends Entity {
3838
}
3939

4040
this.stopUsingItem();

0 commit comments

Comments
 (0)