Skip to content

Commit

Permalink
Clean up some patches and remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed Dec 18, 2023
1 parent a520c36 commit dae2ed7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 80 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ default OptionalInt openMenu(MenuProvider menuProvider, Consumer<FriendlyByteBuf
player.nextContainerCounter();

int openContainerId = player.containerCounter;
FriendlyByteBuf extraData = new FriendlyByteBuf(Unpooled.buffer());
extraDataWriter.accept(extraData);
extraData.readerIndex(0); // reset to beginning in case modders read for whatever reason

AbstractContainerMenu c = menuProvider.createMenu(openContainerId, player.getInventory(), player);
if (c == null)
return OptionalInt.empty();
Expand Down

0 comments on commit dae2ed7

Please sign in to comment.