MCPcopy Create free account
hub / github.com/PrismarineJS/node-minecraft-protocol / evalCount

Function evalCount

test/packetTest.js:13–16  ·  view source on GitHub ↗
(count, fields)

Source from the content-addressed store, hash-verified

11const { getPort } = require('./common/util')
12
13function evalCount (count, fields) {
14 if (fields[count.field] in count.map) { return count.map[fields[count.field]] }
15 return count.default
16}
17
18const slotValue = {
19 present: true,

Callers 1

packetTest.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected