Skip to content

Commit

Permalink
Re-added the old sendForm methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Jun 5, 2022
1 parent bd1cc26 commit 94445a5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/src/main/java/org/geysermc/geyser/session/GeyserSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,22 @@ public void sendForm(FormBuilder<?, ?, ?> formBuilder) {
formCache.showForm(formBuilder.build());
}

/**
* @deprecated since Cumulus version 1.1, and will be removed when Cumulus 2.0 releases. Please use the new forms instead.
*/
@Deprecated
public void sendForm(org.geysermc.cumulus.Form<?> form) {
sendForm(form.newForm());
}

/**
* @deprecated since Cumulus version 1.1, and will be removed when Cumulus 2.0 releases. Please use the new forms instead.
*/
@Deprecated
public void sendForm(org.geysermc.cumulus.util.FormBuilder<?, ?, ?, ?> formBuilder) {
sendForm(formBuilder.build());
}

private void startGame() {
StartGamePacket startGamePacket = new StartGamePacket();
startGamePacket.setUniqueEntityId(playerEntity.getGeyserId());
Expand Down

0 comments on commit 94445a5

Please sign in to comment.