Use netevent for armour
This commit is contained in:
@@ -223,6 +223,7 @@ function getPlayerHealth(client) {
|
|||||||
function setPlayerArmour(client, armour) {
|
function setPlayerArmour(client, armour) {
|
||||||
logToConsole(LOG_DEBUG, `Setting ${getPlayerDisplayForConsole(client)}'s armour to ${armour}`);
|
logToConsole(LOG_DEBUG, `Setting ${getPlayerDisplayForConsole(client)}'s armour to ${armour}`);
|
||||||
sendPlayerSetArmour(client, armour);
|
sendPlayerSetArmour(client, armour);
|
||||||
|
//client.player.armour = armour;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user