mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 10:35:38 +01:00
Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 3a54fb16 SPIGOT-7296: Add ItemFlag#HIDE_ARMOR_TRIM CraftBukkit Changes: 55056ad80 SPIGOT-7295: Fix Sniffer data defined in incorrect position
This commit is contained in:
parent
9b0e97b75b
commit
a2918a5fea
@ -442,6 +442,19 @@ index d5b50a4a954fed35d37f03f1a277cc173ca106df..a91fa5386afd7a1137adb921ad5adb79
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the entities armor to the provided array of ItemStacks
|
* Sets the entities armor to the provided array of ItemStacks
|
||||||
|
diff --git a/src/main/java/org/bukkit/inventory/ItemFlag.java b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
|
index 42fcc31147934fd4ed6484b0729e938e7ae2f8e2..4e637420b9a39b822be19367a16da93f236549b3 100644
|
||||||
|
--- a/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
|
+++ b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
|
@@ -35,7 +35,7 @@ public enum ItemFlag {
|
||||||
|
*/
|
||||||
|
HIDE_DYE,
|
||||||
|
/**
|
||||||
|
- * Setting to show/hide armor trim from leather armor.
|
||||||
|
+ * Setting to show/hide armor trim from armor.
|
||||||
|
*/
|
||||||
|
HIDE_ARMOR_TRIM;
|
||||||
|
}
|
||||||
diff --git a/src/main/java/org/bukkit/inventory/PlayerInventory.java b/src/main/java/org/bukkit/inventory/PlayerInventory.java
|
diff --git a/src/main/java/org/bukkit/inventory/PlayerInventory.java b/src/main/java/org/bukkit/inventory/PlayerInventory.java
|
||||||
index 62fbd7f6d8195bebcab7f704a0a485a1bbeca26c..5461f7fa75f5a065bb333b4a113640b5fe1e3825 100644
|
index 62fbd7f6d8195bebcab7f704a0a485a1bbeca26c..5461f7fa75f5a065bb333b4a113640b5fe1e3825 100644
|
||||||
--- a/src/main/java/org/bukkit/inventory/PlayerInventory.java
|
--- a/src/main/java/org/bukkit/inventory/PlayerInventory.java
|
||||||
|
@ -1221,6 +1221,17 @@ index b99f26079c14931d443615fa81eac9791080ecb0..dadb5b3563b5835c821a2d55d1f076a5
|
|||||||
public interface ChiseledBookshelfInventory extends Inventory {
|
public interface ChiseledBookshelfInventory extends Inventory {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
diff --git a/src/main/java/org/bukkit/inventory/ItemFlag.java b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
|
index 4e637420b9a39b822be19367a16da93f236549b3..615cd9994be8a988b474eb512d9e9b7ace743a7a 100644
|
||||||
|
--- a/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
|
+++ b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
|
@@ -37,5 +37,6 @@ public enum ItemFlag {
|
||||||
|
/**
|
||||||
|
* Setting to show/hide armor trim from armor.
|
||||||
|
*/
|
||||||
|
+ @org.jetbrains.annotations.ApiStatus.Experimental // Paper - 1.20
|
||||||
|
HIDE_ARMOR_TRIM;
|
||||||
|
}
|
||||||
diff --git a/src/main/java/org/bukkit/inventory/SmithingTransformRecipe.java b/src/main/java/org/bukkit/inventory/SmithingTransformRecipe.java
|
diff --git a/src/main/java/org/bukkit/inventory/SmithingTransformRecipe.java b/src/main/java/org/bukkit/inventory/SmithingTransformRecipe.java
|
||||||
index 08fd3eca8383cdc2d06c3ce973e8c402d279077e..c845b68217eef87668d0bd725c51181312128f47 100644
|
index 08fd3eca8383cdc2d06c3ce973e8c402d279077e..c845b68217eef87668d0bd725c51181312128f47 100644
|
||||||
--- a/src/main/java/org/bukkit/inventory/SmithingTransformRecipe.java
|
--- a/src/main/java/org/bukkit/inventory/SmithingTransformRecipe.java
|
||||||
|
@ -5,10 +5,10 @@ Subject: [PATCH] Replace ItemFlag.HIDE_POTION_EFFECTS
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/inventory/ItemFlag.java b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
diff --git a/src/main/java/org/bukkit/inventory/ItemFlag.java b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
index a4c0469c565b1fea68b828280c7faf81bc6c332c..73ed2d3c4aded81a24489381db16184383e625bb 100644
|
index 615cd9994be8a988b474eb512d9e9b7ace743a7a..802b7ce23db1e19fc39adc7f93d9a36618742d33 100644
|
||||||
--- a/src/main/java/org/bukkit/inventory/ItemFlag.java
|
--- a/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
+++ b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
+++ b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
||||||
@@ -28,10 +28,33 @@ public enum ItemFlag {
|
@@ -28,7 +28,9 @@ public enum ItemFlag {
|
||||||
/**
|
/**
|
||||||
* Setting to show/hide potion effects, book and firework information, map
|
* Setting to show/hide potion effects, book and firework information, map
|
||||||
* tooltips, patterns of banners, and enchantments of enchanted books.
|
* tooltips, patterns of banners, and enchantments of enchanted books.
|
||||||
@ -17,9 +17,11 @@ index a4c0469c565b1fea68b828280c7faf81bc6c332c..73ed2d3c4aded81a24489381db161843
|
|||||||
+ @Deprecated // Paper
|
+ @Deprecated // Paper
|
||||||
HIDE_POTION_EFFECTS,
|
HIDE_POTION_EFFECTS,
|
||||||
/**
|
/**
|
||||||
* Setting to show/hide dyes from coloured leather armour
|
* Setting to show/hide dyes from colored leather armor.
|
||||||
|
@@ -39,4 +41,25 @@ public enum ItemFlag {
|
||||||
*/
|
*/
|
||||||
HIDE_DYE;
|
@org.jetbrains.annotations.ApiStatus.Experimental // Paper - 1.20
|
||||||
|
HIDE_ARMOR_TRIM;
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ /**
|
+ /**
|
||||||
+ * Setting to show/hide item-specific information, including, but not limited to:
|
+ * Setting to show/hide item-specific information, including, but not limited to:
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
||||||
Date: Tue, 14 Mar 2023 19:37:29 -0700
|
|
||||||
Subject: [PATCH] Add new HIDE_UPGRADES ItemFlag
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/inventory/ItemFlag.java b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
|
||||||
index 73ed2d3c4aded81a24489381db16184383e625bb..ee99ef92d0afffe90f4e77da1f04e5724f868546 100644
|
|
||||||
--- a/src/main/java/org/bukkit/inventory/ItemFlag.java
|
|
||||||
+++ b/src/main/java/org/bukkit/inventory/ItemFlag.java
|
|
||||||
@@ -35,7 +35,13 @@ public enum ItemFlag {
|
|
||||||
/**
|
|
||||||
* Setting to show/hide dyes from coloured leather armour
|
|
||||||
*/
|
|
||||||
- HIDE_DYE;
|
|
||||||
+ HIDE_DYE,
|
|
||||||
+ // Paper start
|
|
||||||
+ /**
|
|
||||||
+ * Setting to show/hide armor trim information.
|
|
||||||
+ */
|
|
||||||
+ @org.jetbrains.annotations.ApiStatus.Experimental // Paper - 1.20
|
|
||||||
+ HIDE_UPGRADES;
|
|
||||||
// Paper start
|
|
||||||
/**
|
|
||||||
* Setting to show/hide item-specific information, including, but not limited to:
|
|
@ -1,42 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
||||||
Date: Tue, 14 Mar 2023 20:03:21 -0700
|
|
||||||
Subject: [PATCH] Fix sniffer
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/world/entity/animal/sniffer/Sniffer.java b/src/main/java/net/minecraft/world/entity/animal/sniffer/Sniffer.java
|
|
||||||
index efcfce93d17507bb6cc870a94eaa777429050d18..5719172a31f005ce419f365011d53712a9b2820f 100644
|
|
||||||
--- a/src/main/java/net/minecraft/world/entity/animal/sniffer/Sniffer.java
|
|
||||||
+++ b/src/main/java/net/minecraft/world/entity/animal/sniffer/Sniffer.java
|
|
||||||
@@ -74,12 +74,20 @@ public class Sniffer extends Animal {
|
|
||||||
|
|
||||||
public Sniffer(EntityType<? extends Animal> type, Level world) {
|
|
||||||
super(type, world);
|
|
||||||
- this.entityData.define(DATA_STATE, Sniffer.State.IDLING);
|
|
||||||
- this.entityData.define(DATA_DROP_SEED_AT_TICK, 0);
|
|
||||||
+ // Paper - move to defineSyncedData
|
|
||||||
this.getNavigation().setCanFloat(true);
|
|
||||||
this.setPathfindingMalus(BlockPathTypes.WATER, -2.0F);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ // Paper start
|
|
||||||
+ @Override
|
|
||||||
+ protected void defineSynchedData() {
|
|
||||||
+ super.defineSynchedData();
|
|
||||||
+ this.entityData.define(DATA_STATE, Sniffer.State.IDLING);
|
|
||||||
+ this.entityData.define(DATA_DROP_SEED_AT_TICK, 0);
|
|
||||||
+ }
|
|
||||||
+ // Paper end
|
|
||||||
+
|
|
||||||
@Override
|
|
||||||
protected float getStandingEyeHeight(Pose pose, EntityDimensions dimensions) {
|
|
||||||
return this.getDimensions(pose).height * 0.6F;
|
|
||||||
@@ -388,7 +396,7 @@ public class Sniffer extends Animal {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Brain<Sniffer> getBrain() {
|
|
||||||
- return super.getBrain();
|
|
||||||
+ return (Brain<Sniffer>) super.getBrain(); // Paper - decompile issue
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
@ -1 +1 @@
|
|||||||
Subproject commit fdef9473fc0cc3873104306f5ec24e587ad3e962
|
Subproject commit 3a54fb167d6354b6e39f5027bcde56641f487b8f
|
@ -1 +1 @@
|
|||||||
Subproject commit 968d28df0410e2a4ff04fbbd09e7c6bf91c3cd69
|
Subproject commit 55056ad80314cca1c910c9b79f31a1b6a4c629f6
|
Loading…
Reference in New Issue
Block a user