Skip to content

Commit

Permalink
Merge pull request #130 from moddio/projectile-fix
Browse files Browse the repository at this point in the history
projectile data fix
  • Loading branch information
m0dE authored Oct 4, 2021
2 parents 4007a61 + 925d7fe commit eb3a143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gameClasses/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ var Item = IgeEntityBox2d.extend({

// console.log(self._stats.currentBody.type, "unit: ", angleToTarget, "item's rotate.z: ", self._rotate.z, "facing angle", itemrotate)
var data = Object.assign(
self.projectileData,
JSON.parse(JSON.stringify(self.projectileData)),
{
type: self._stats.projectileType,
sourceItemId: self.id(),
Expand Down

0 comments on commit eb3a143

Please sign in to comment.