FirenX / emu-coop

Lua scripts for turning 1-player games into 2-player games using inventory sharing.
9 stars 3 forks source link

Duplicate key issue #13

Open codemann8 opened 5 years ago

codemann8 commented 5 years ago

Ik this project hasn't been updated for some time, but I thought I should mention something I ran across. If both players happen to be the the same room, if both collect the same key, the counts are doubled. Obviously, it's impossible to despawn the key in the room, but you could possibly run a duplication check and decrement the local key count and prevent sending the duplicate key to the other player.