mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Assigning a component again now returns the component instead of null
This commit is contained in:
@@ -160,9 +160,9 @@ namespace GlitchyEngine.World
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: maybe assert?
|
// TODO: is it a problem to assign a component again?
|
||||||
if(listEntity.ComponentMask[entry.Id])
|
//if(listEntity.ComponentMask[entry.Id])
|
||||||
return null;
|
// return null;
|
||||||
|
|
||||||
listEntity.ComponentMask[entry.Id] = true;
|
listEntity.ComponentMask[entry.Id] = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user