geforkt von Mirrors/Paper
Avoid item merge if stack size above max stack size (#1217)
Dieser Commit ist enthalten in:
Ursprung
2db50592b9
Commit
b90705d2ad
@ -33,4 +33,5 @@ MiniDigger | Martin <admin@minidigger.dev>
|
||||
Brokkonaut <hannos17@gmx.de>
|
||||
vemacs <d@nkmem.es>
|
||||
stonar96 <minecraft.stonar96@gmail.com>
|
||||
Hugo Manrique <hugmanrique@gmail.com>
|
||||
```
|
||||
|
@ -0,0 +1,23 @@
|
||||
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/server/EntityItem.java b/src/main/java/net/minecraft/server/EntityItem.java
|
||||
index 0b7fc327..099bc755 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityItem.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityItem.java
|
||||
@@ -0,0 +0,0 @@ public class EntityItem extends Entity implements HopperPusher {
|
||||
// Spigot end
|
||||
|
||||
private void x() {
|
||||
+ // Paper start - avoid item merge if stack size above max stack size
|
||||
+ ItemStack stack = getItemStack();
|
||||
+ if (stack.getCount() >= stack.getMaxStackSize()) return;
|
||||
+ // Paper end
|
||||
+
|
||||
// Spigot start
|
||||
double radius = world.spigotConfig.itemMerge;
|
||||
Iterator iterator = this.world.a(EntityItem.class, this.getBoundingBox().grow(radius, radius, radius)).iterator();
|
||||
--
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren