Skip to content

Commit

Permalink
(deps): bump java-game-sdk + minestom-core
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakShearman committed Jan 5, 2024
1 parent 9d6e46b commit 0570137
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

dependencies {
implementation("dev.emortal.minestom:game-sdk:5fdd697")
implementation("dev.emortal.minestom:game-sdk:52c9b1d")

implementation("dev.hollowcube:polar:1.3.1")
implementation("com.github.EmortalMC:MinestomPvP:6aefcba403")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public final class ChestUpdateHandler {

public ChestUpdateHandler(@NotNull BattleGame game) {
this.game = game;
this.instance = game.getSpawningInstance();
this.instance = game.getInstance();

this.registerBackgroundTasks();
game.getEventNode().addListener(PlayerBlockInteractEvent.class, this::onBlockInteract);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ public void cleanUp() {
}

@Override
public @NotNull Instance getSpawningInstance() {
public @NotNull Instance getSpawningInstance(@NotNull Player player) {
return this.map.instance();
}

public @NotNull Instance getInstance() {
return this.map.instance();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private void unfreezeAll() {
private void registerEvents() {
new PvpListener(this.game);
new ChestUpdateHandler(this.game);
HungerListener.register(this.game.getSpawningInstance());
HungerListener.register(this.game.getInstance());
}
}
}

0 comments on commit 0570137

Please sign in to comment.