mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
cleanup some descriptions + optimize hoppers patch
This commit is contained in:
@@ -26,15 +26,11 @@ https://bugs.mojang.com/browse/MC-179072
|
|||||||
Creepers do not defuse when switching from Survival to Creative/Spectator
|
Creepers do not defuse when switching from Survival to Creative/Spectator
|
||||||
|
|
||||||
https://bugs.mojang.com/browse/MC-191591
|
https://bugs.mojang.com/browse/MC-191591
|
||||||
https://bugs.mojang.com/browse/MC-258360
|
|
||||||
Fix items equipped on AbstractHorse losing NBT
|
Fix items equipped on AbstractHorse losing NBT
|
||||||
|
|
||||||
https://bugs.mojang.com/browse/MC-259571
|
https://bugs.mojang.com/browse/MC-259571
|
||||||
Fix changeGameModeForPlayer to use gameModeForPlayer
|
Fix changeGameModeForPlayer to use gameModeForPlayer
|
||||||
|
|
||||||
https://bugs.mojang.com/browse/MC-260219
|
|
||||||
Play sniffer eat sound for the last item
|
|
||||||
|
|
||||||
https://bugs.mojang.com/browse/MC-262422
|
https://bugs.mojang.com/browse/MC-262422
|
||||||
Fix lightning being able to hit spectators
|
Fix lightning being able to hit spectators
|
||||||
|
|
||||||
|
@@ -556,7 +556,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
private static boolean canMergeItems(ItemStack first, ItemStack second) {
|
private static boolean canMergeItems(ItemStack first, ItemStack second) {
|
||||||
- return first.getCount() <= first.getMaxStackSize() && ItemStack.isSameItemSameTags(first, second);
|
- return first.getCount() <= first.getMaxStackSize() && ItemStack.isSameItemSameTags(first, second);
|
||||||
+ return first.is(second.getItem()) && first.getDamageValue() == second.getDamageValue() && first.getCount() < first.getMaxStackSize() && ItemStack.isSameItemSameTags(first, second); // Paper - used to return true for full itemstacks?!
|
+ return first.getCount() < first.getMaxStackSize() && first.is(second.getItem()) && first.getDamageValue() == second.getDamageValue() && ((first.isEmpty() && second.isEmpty()) || java.util.Objects.equals(first.getTag(), second.getTag())); // Paper - used to return true for full itemstacks?!
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user