|
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: granny <contact@granny.dev>
|
|
|
|
|
Date: Sun, 25 Feb 2024 11:53:25 +0900
|
|
|
|
|
Date: Sun, 3 Mar 2024 00:58:34 +0000
|
|
|
|
|
Subject: [PATCH] Purpur Server Changes
|
|
|
|
|
|
|
|
|
|
PurpurMC
|
|
|
|
|
@@ -15503,6 +15503,19 @@ index d7bddedb19c10f62fd1f7d3128453ad706ed16be..752b38d45d59d8b3cd492246e5aa4f37
|
|
|
|
|
|
|
|
|
|
if (NaturalSpawner.isSpawnPositionOk(SpawnPlacements.Type.ON_GROUND, world, blockposition2, EntityType.WANDERING_TRADER)) {
|
|
|
|
|
blockposition1 = blockposition2;
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/player/Inventory.java b/src/main/java/net/minecraft/world/entity/player/Inventory.java
|
|
|
|
|
index deabb3400ee2406a8ec179a96d8cfd86f8edbbd6..c6a925cbd35eb33b27b90bfa8344ac7515d28b76 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/player/Inventory.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/player/Inventory.java
|
|
|
|
|
@@ -114,7 +114,7 @@ public class Inventory implements Container, Nameable {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private boolean hasRemainingSpaceForItem(ItemStack existingStack, ItemStack stack) {
|
|
|
|
|
- return !existingStack.isEmpty() && ItemStack.isSameItemSameTags(existingStack, stack) && existingStack.isStackable() && existingStack.getCount() < existingStack.getMaxStackSize() && existingStack.getCount() < this.getMaxStackSize();
|
|
|
|
|
+ return !existingStack.isEmpty() && existingStack.isStackable() && existingStack.getCount() < existingStack.getMaxStackSize() && existingStack.getCount() < this.getMaxStackSize() && ItemStack.isSameItemSameTags(existingStack, stack); // Paper - check if itemstack is stackable first
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CraftBukkit start - Watch method above! :D
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/player/Player.java b/src/main/java/net/minecraft/world/entity/player/Player.java
|
|
|
|
|
index 567704f61034363e48ef2a5b5566ebdc91682297..43199815ffe3d666577390b96187aa898ceb910e 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/player/Player.java
|
|
|
|
|
|