Commits

md_5 authored 8effa51854b
SPIGOT-323: Enchanting tables can no longer be force opened.

(reverted from commit a2aa082c09ebd0f2372d2f920310a37f95513b0a)
No tags

src/main/java/org/bukkit/entity/HumanEntity.java

Modified
69 69 *
70 70 * @param location The location to attach it to. If null, the player's
71 71 * location is used.
72 72 * @param force If false, and there is no workbench block at the location,
73 73 * no inventory will be opened and null will be returned.
74 74 * @return The newly opened inventory view, or null if it could not be
75 75 * opened.
76 76 */
77 77 public InventoryView openWorkbench(Location location, boolean force);
78 78
79 - /**
80 - * Opens an empty enchanting inventory window with the player's inventory
81 - * on the bottom.
82 - *
83 - * @param location The location to attach it to. If null, the player's
84 - * location is used.
85 - * @return The newly opened inventory view, or null if it could not be
86 - * opened.
87 - * @deprecated You cannot force open an enchanting table.
88 - */
89 - public InventoryView openEnchanting(Location location);
90 -
91 79 /**
92 80 * Opens an empty enchanting inventory window with the player's inventory
93 81 * on the bottom.
94 82 *
95 83 * @param location The location to attach it to. If null, the player's
96 84 * location is used.
97 85 * @param force If false, and there is no enchanting table at the
98 86 * location, no inventory will be opened and null will be returned.
99 87 * @return The newly opened inventory view, or null if it could not be
100 88 * opened.
101 - * @deprecated You cannot force open an enchanting table.
102 89 */
103 - @Deprecated
104 90 public InventoryView openEnchanting(Location location, boolean force);
105 91
106 92 /**
107 93 * Opens an inventory window to the specified inventory view.
108 94 *
109 95 * @param inventory The view to open
110 96 */
111 97 public void openInventory(InventoryView inventory);
112 98
113 99 /**

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut