Skip to content

Commit

Permalink
Tweaked ticking of temp. entities in entity_set power type
Browse files Browse the repository at this point in the history
* The power is now only sync'd after all the temp. entities that needs to be removed are removed
  • Loading branch information
eggohito committed Dec 22, 2023
1 parent 8c6a829 commit e375f55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void tickTempEntities() {
Map.Entry<UUID, Integer> entry = entryIterator.next();
entry.setValue(entry.getValue() - 1);

if (entry.getValue() <= 0 && this.remove(entry.getKey(), true, true)) {
if (entry.getValue() <= 0 && this.remove(entry.getKey(), true, false)) {
shouldSync = true;
}

Expand Down

0 comments on commit e375f55

Please sign in to comment.