@@ -46,7 +46,7 @@ final class InventoryViewListener implements MVInvListener {
4646 // This listener will cancel any clicks or drags in inventories that have the ReadOnlyInventoryHolder marker.
4747 @ EventMethod
4848 @ DefaultEventPriority (EventPriority .NORMAL )
49- public void onInventoryClick (InventoryClickEvent event ) {
49+ void onInventoryClick (InventoryClickEvent event ) {
5050 // If it's a read-only inventory, cancel all clicks.
5151 if (event .getInventory ().getHolder () instanceof ReadOnlyInventoryHolder ||
5252 (event .getClickedInventory () != null && event .getClickedInventory ().getHolder () instanceof ReadOnlyInventoryHolder )) {
@@ -127,7 +127,7 @@ public void onInventoryClick(InventoryClickEvent event) {
127127 // Also cancel drag events to prevent items from being dragged into/out of the inventory
128128 @ EventMethod
129129 @ DefaultEventPriority (EventPriority .NORMAL )
130- public void onInventoryDrag (InventoryDragEvent event ) {
130+ void onInventoryDrag (InventoryDragEvent event ) {
131131 // If it is a read-only inventory, cancel all drags
132132 if (event .getInventory ().getHolder () instanceof ReadOnlyInventoryHolder ) {
133133 event .setCancelled (true );
@@ -177,7 +177,7 @@ public void onInventoryDrag(InventoryDragEvent event) {
177177 // Event handler for InventoryCloseEvent to save changes
178178 @ EventMethod
179179 @ DefaultEventPriority (EventPriority .NORMAL )
180- public void onInventoryClose (InventoryCloseEvent event ) {
180+ void onInventoryClose (InventoryCloseEvent event ) {
181181 // Check if the closed inventory has the custom ModifiableInventoryHolder class
182182 if (event .getInventory ().getHolder () instanceof ModifiableInventoryHolder holder ) {
183183 final OfflinePlayer targetPlayer = holder .getTargetPlayer ();
0 commit comments