File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,12 @@ module.exports = class Utils {
133
133
if ( nbt . select ( '' ) . select ( 'Spigot.ticksLived' ) ) {
134
134
lived = nbt . select ( '' ) . select ( 'Spigot.ticksLived' ) . getValue ( ) / 20
135
135
}
136
- const timeStart = bignum ( nbt . select ( '' ) . select ( 'bukkit' ) . select ( 'firstPlayed' ) . getValue ( ) ) . toNumber ( )
137
- const timeLast = bignum ( nbt . select ( '' ) . select ( 'bukkit' ) . select ( 'lastPlayed' ) . getValue ( ) ) . toNumber ( )
136
+ const timeStart = nbt . select ( '' ) . select ( 'bukkit' )
137
+ ? bignum ( nbt . select ( '' ) . select ( 'bukkit' ) . select ( 'firstPlayed' ) . getValue ( ) ) . toNumber ( )
138
+ : null
139
+ const timeLast = nbt . select ( '' ) . select ( 'bukkit' )
140
+ ? bignum ( nbt . select ( '' ) . select ( 'bukkit' ) . select ( 'lastPlayed' ) . getValue ( ) ) . toNumber ( )
141
+ : null
138
142
const pdata = {
139
143
seen : timeLast ,
140
144
time_start : timeStart ,
You can’t perform that action at this time.
0 commit comments