mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
Revert "Fix team scoreboard"
This reverts commit 95bacd4bfd2b68b0084c3e3b186e796838223a20.
This commit is contained in:
parent
95bacd4bfd
commit
5f349d338d
@ -1275,10 +1275,8 @@ function createPacketBuffer(packetId, state, params, isServer) {
|
|||||||
offset = writeVarInt(packetId, buffer, offset);
|
offset = writeVarInt(packetId, buffer, offset);
|
||||||
packet.forEach(function(fieldInfo) {
|
packet.forEach(function(fieldInfo) {
|
||||||
var value = params[fieldInfo.name];
|
var value = params[fieldInfo.name];
|
||||||
if (!fieldInfo.condition || fieldInfo.condition(params)) {
|
if(typeof value === "undefined") value = 0; // TODO : Why ?
|
||||||
if(typeof value === "undefined") value = 0; // TODO : Why ?
|
offset = write(value, buffer, offset, fieldInfo, params);
|
||||||
offset = write(value, buffer, offset, fieldInfo, params);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user