Skip to content

Commit

Permalink
Remove console log and add comment for component access
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinLeamy committed Aug 22, 2023
1 parent 8fb9b4a commit 1ab8115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/logic/events/handlers/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { getBiscuit } from "@/shared/bikkie/active";
import { secondsSinceEpoch } from "@/shared/ecs/config";
import * as Component from "@/shared/ecs/gen/components";
import { RecipeBook } from "@/shared/ecs/gen/components";
import type { Delta } from "@/shared/ecs/gen/delta";
import { anItem } from "@/shared/game/item";
import { removeFromSet } from "@/shared/game/items";
import { log } from "@/shared/logging";
Expand Down Expand Up @@ -355,9 +354,10 @@ export const adminECSUpdateComponentEventHandler = makeEventHandler(
try {
let newComponent = entityInvoke(entity, componentField, "mutable");
if (newComponent === undefined) {
// The component can be directly mutated and therefore is not accessed through
// mutable accessor method.
newComponent = entityInvoke(entity, componentField, "get");
}
console.log("newComponent", newComponent);
const currentValue = fetchCurrentValue(
newComponent,
componentLocalPath
Expand Down

0 comments on commit 1ab8115

Please sign in to comment.