PretendoNetwork / nex-go

Barebones PRUDP/NEX server library written in Go
GNU Affero General Public License v3.0
74 stars 16 forks source link

Use structure.Copy() on DataHolder read #29

Closed DaniElectra closed 1 year ago

DaniElectra commented 1 year ago

This prevents issues where two clients send a packet with a same data holder and create conflicts upon writing the structure data.

Also apply newStructure.Copy() on ReadListStructure() and fix comments issues