Fix Item Dropping When Killing Players From The Server Console
This commit is contained in:
parent
4dff667749
commit
b7b60876d8
@ -207,7 +207,7 @@ static void ban_callback(Minecraft *minecraft, std::string username, Player *pla
|
|||||||
|
|
||||||
// Kill Player
|
// Kill Player
|
||||||
static void kill_callback(__attribute__((unused)) Minecraft *minecraft, __attribute__((unused)) std::string username, Player *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());
|
INFO("Killed: %s", username.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user