mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 14:33:09 +01:00
Remove unneeded patch
This commit is contained in:
parent
ed313fe695
commit
3ce03e2d23
1 changed files with 0 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hugo Manrique <hugmanrique@gmail.com>
|
|
||||||
Date: Mon, 16 Jul 2018 12:42:20 +0200
|
|
||||||
Subject: [PATCH] Avoid item merge if stack size above max stack size
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
|
|
||||||
+++ b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
|
|
||||||
@@ -0,0 +0,0 @@ public class ItemEntity extends Entity {
|
|
||||||
|
|
||||||
private void mergeWithNeighbours() {
|
|
||||||
if (this.isMergable()) {
|
|
||||||
+ // Paper start - avoid item merge if stack size above max stack size
|
|
||||||
+ ItemStack stack = getItem();
|
|
||||||
+ if (stack.getCount() >= stack.getMaxStackSize()) return;
|
|
||||||
+ // Paper end
|
|
||||||
// Spigot start
|
|
||||||
double radius = level.spigotConfig.itemMerge;
|
|
||||||
List<ItemEntity> list = this.level.getEntitiesOfClass(ItemEntity.class, this.getBoundingBox().inflate(radius, radius - 0.5D, radius), (entityitem) -> {
|
|
Loading…
Reference in a new issue