forked from OpenWF/SpaceNinjaServer
		
	fix: use the correct magic number for crew member seeds (#2451)
Closes #2444 Reviewed-on: OpenWF/SpaceNinjaServer#2451 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									45feff682b
								
							
						
					
					
						commit
						08d4a03c50
					
				@ -815,7 +815,7 @@ export const addItem = async (
 | 
			
		||||
                        if (!seed) {
 | 
			
		||||
                            throw new Error(`Expected crew member to have a seed`);
 | 
			
		||||
                        }
 | 
			
		||||
                        seed |= 0x33b81en << 32n;
 | 
			
		||||
                        seed |= BigInt(Math.trunc(inventory.Created.getTime() / 1000) & 0xffffff) << 32n;
 | 
			
		||||
                        return {
 | 
			
		||||
                            ...addCrewMember(inventory, typeName, seed),
 | 
			
		||||
                            ...occupySlot(inventory, InventorySlot.CREWMEMBERS, premiumPurchase)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user