Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
fix: dropItemMsg crash
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Oct 4, 2024
1 parent 4820e1f commit f43c55b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/game/objects/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3225,6 +3225,7 @@ export class Player extends BaseGameObject {

dropItem(dropMsg: net.DropItemMsg): void {
const itemDef = GameObjectDefs[dropMsg.item] as LootDef;
if (!itemDef) return;
switch (itemDef.type) {
case "ammo": {
const inventoryCount = this.inventory[dropMsg.item];
Expand Down

0 comments on commit f43c55b

Please sign in to comment.