mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MC_XiaoHei <xor7xiaohei@gmail.com>
|
|
Date: Sat, 5 Jul 2025 11:31:44 +0800
|
|
Subject: [PATCH] temp fix quick craft
|
|
|
|
caused by PaperMC/Paper#11765
|
|
should remove when PaperMC/Paper#11831 merged
|
|
|
|
diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java
|
|
index 6b776ff621275e842c113000bd69528c96a598c3..deec9de308c90aef7844623569e847c727644b74 100644
|
|
--- a/net/minecraft/world/entity/LivingEntity.java
|
|
+++ b/net/minecraft/world/entity/LivingEntity.java
|
|
@@ -3961,11 +3961,11 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
|
return null;
|
|
} else {
|
|
double d = this.getEyeY() - 0.3F;
|
|
- // Paper start
|
|
- final ItemStack tmp = stack.copy();
|
|
- stack.setCount(0);
|
|
- stack = tmp;
|
|
- // Paper end
|
|
+ // Paper start // Leaves start - wtf this for? it breaks quick craft
|
|
+ // final ItemStack tmp = stack.copy();
|
|
+ // stack.setCount(0);
|
|
+ // stack = tmp;
|
|
+ // Paper end // Leaves end
|
|
ItemEntity itemEntity = new ItemEntity(this.level(), this.getX(), d, this.getZ(), stack);
|
|
itemEntity.setPickUpDelay(40);
|
|
if (includeThrower) {
|