mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
Merge pull request #4 from josh-perry/fix_entity_has_nil
Thanks for the pull request. I will merge it. There may be more inconsistencies like this that I will check and fix.
This commit is contained in:
commit
5949b542ea
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ end
|
|||
-- @params component The Component to check against
|
||||
-- @return True if the entity has the Bag. False otherwise
|
||||
function Entity:has(component)
|
||||
return self.components[component] and true
|
||||
return self.components[component] ~= nil
|
||||
end
|
||||
|
||||
return setmetatable(Entity, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue