Fix Item Dropping When Killing Players From The Server Console

This commit is contained in:
TheBrokenRail 2024-01-06 18:15:52 -05:00
parent 4dff667749
commit b7b60876d8
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ static void ban_callback(Minecraft *minecraft, std::string username, Player *pla
// Kill Player
static void kill_callback(__attribute__((unused)) Minecraft *minecraft, __attribute__((unused)) std::string username, Player *player) {
player->vtable->actuallyHurt(player, INT32_MAX);
player->vtable->hurt(player, NULL, INT32_MAX);
INFO("Killed: %s", username.c_str());
}