Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 • committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -8,8 +8,8 @@ namespace Server.Engines.Harvest
{
public class HarvestTarget : Target
{
private HarvestSystem m_System;
private Item m_Tool;
private readonly HarvestSystem m_System;
private readonly Item m_Tool;
public HarvestTarget(Item tool, HarvestSystem system) : base(-1, true, TargetFlags.None)
{
@ -47,7 +47,7 @@ namespace Server.Engines.Harvest
}
}
if (m_System is Lumberjacking && targeted is IChopable chopable)
if (m_System is Lumberjacking && targeted is IChoppable chopable)
{
chopable.OnChop(from);
}