mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Undeprecate and fix Boat#getBoatMaterial (#8217)
This commit is contained in:
parent
f0d198d6b2
commit
20a8246572
2 changed files with 1 additions and 3 deletions
|
@ -18,9 +18,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ * Gets the {@link Material} that represents this Boat type.
|
+ * Gets the {@link Material} that represents this Boat type.
|
||||||
+ *
|
+ *
|
||||||
+ * @return the boat material.
|
+ * @return the boat material.
|
||||||
+ * @deprecated use {@link #getBoatType()} and {@link Type#getMaterial()}
|
|
||||||
+ */
|
+ */
|
||||||
+ @Deprecated
|
|
||||||
+ @NotNull
|
+ @NotNull
|
||||||
+ public Material getBoatMaterial();
|
+ public Material getBoatMaterial();
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
|
|
@ -15,7 +15,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ @Override
|
+ @Override
|
||||||
+ public org.bukkit.Material getBoatMaterial() {
|
+ public org.bukkit.Material getBoatMaterial() {
|
||||||
+ return this.getBoatType().getMaterial();
|
+ return org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(this.getHandle().getDropItem());
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in a new issue