Skip to content

Commit cf9f0e5

Browse files
committed
Update trapentity.ts
1 parent 2391a24 commit cf9f0e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/servers/ZoneServer2016/entities/trapentity.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class TrapEntity extends BaseSimpleNpc {
283283
case Items.TRAP_GAS:
284284
case Items.TRAP_SHOCK:
285285
// Wait 10 seconds before activating the trap
286-
//await new Promise<void>((resolve) => setTimeout(resolve, 10000)); this is already handled in the arm() function also it causes a bug where the trap can be triggered when a player have stepped on it more then 10 seconds after it was placed
286+
//await new Promise<void>((resolve) => setTimeout(resolve, 10000)); this is already handled in the arm() function also it causes a bug where the trap can only be triggered when a player have stepped on it more then 10 seconds after it was placed (johnoclock)
287287
this.triggerAreaTrap(server);
288288
break;
289289
}

0 commit comments

Comments
 (0)