Skip to content

Commit 7ff0593

Browse files
committed
Nothing to see here
1 parent 8f5847a commit 7ff0593

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/game-engine/world/actor/player/player.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ export class Player extends Actor {
600600
let showInConsole = false;
601601
if(typeof options === 'boolean') {
602602
showDialogue = true;
603-
} else {
603+
} else if(options) {
604604
showDialogue = options.dialogue || false;
605605
showInConsole = options.console || false;
606606
}

src/plugins/skills/woodcutting/woodcutting.plugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import { randomBetween } from '@engine/util/num';
99
import { colorText } from '@engine/util/strings';
1010
import { colors } from '@engine/util/colors';
1111
import { rollBirdsNestType } from '@engine/world/skill-util/harvest-roll';
12-
import { cache, world } from '@engine/game-server';
12+
import { world } from '@engine/game-server';
1313
import { soundIds } from '@engine/world/config/sound-ids';
1414
import { Axe, getAxe, HarvestTool } from '@engine/world/config/harvest-tool';
1515
import { TaskExecutor } from '@engine/world/action';
16+
import { findItem } from '@engine/config';
1617

1718

1819
const canActivate = (task: TaskExecutor<ObjectInteractionAction>, taskIteration: number): boolean => {
@@ -77,7 +78,7 @@ const activate = (task: TaskExecutor<ObjectInteractionAction>, taskIteration: nu
7778

7879
const percentNeeded = tree.baseChance + toolLevel + actor.skills.woodcutting.level;
7980
if(successChance <= percentNeeded) {
80-
const targetName: string = cache.itemDefinitions.get(tree.itemId).name.toLowerCase();
81+
const targetName: string = findItem(tree.itemId).name.toLowerCase();
8182

8283
if(actor.inventory.hasSpace()) {
8384
const itemToAdd = tree.itemId;

0 commit comments

Comments
 (0)