From 89443bd9619faaa9b1b5348161445ed23841624d Mon Sep 17 00:00:00 2001 From: Tjakka5 Date: Sun, 22 Dec 2019 21:01:47 +0100 Subject: [PATCH] Make e:flush 'private' --- src/entity.lua | 2 +- src/world.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity.lua b/src/entity.lua index 5bfc88e..a3d6483 100644 --- a/src/entity.lua +++ b/src/entity.lua @@ -108,7 +108,7 @@ function Entity:assemble(assemblage, ...) return self end -function Entity:flush() +function Entity:__flush() local addi, removei = 1, 1 for i = 1, #self.__operations do diff --git a/src/world.lua b/src/world.lua index 8a47aea..63ef1a9 100644 --- a/src/world.lua +++ b/src/world.lua @@ -76,7 +76,7 @@ function World:flush() e = self.entities:get(i) if e.__isDirty then - e:flush() + e:__flush() if (not e.__wasAdded) then -- The __wasAdded check below will handle this instead for j = 1, self.systems.size do