Fixed layer on FishingPole.
This commit is contained in:
parent
f36ac813ed
commit
d6c2a0049c
1 changed files with 5 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ namespace Server.Items
|
||||||
[Constructable]
|
[Constructable]
|
||||||
public FishingPole() : base( 0x0DC0 )
|
public FishingPole() : base( 0x0DC0 )
|
||||||
{
|
{
|
||||||
Layer = Layer.OneHanded;
|
Layer = Layer.TwoHanded;
|
||||||
Weight = 8.0;
|
Weight = 8.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@ namespace Server.Items
|
||||||
{
|
{
|
||||||
base.Serialize( writer );
|
base.Serialize( writer );
|
||||||
|
|
||||||
writer.Write( (int) 0 ); // version
|
writer.Write( (int) 1 ); // version
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Deserialize( GenericReader reader )
|
public override void Deserialize( GenericReader reader )
|
||||||
|
|
@ -51,6 +51,9 @@ namespace Server.Items
|
||||||
base.Deserialize( reader );
|
base.Deserialize( reader );
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
int version = reader.ReadInt();
|
||||||
|
|
||||||
|
if ( version < 1 && Layer == Layer.OneHanded )
|
||||||
|
Layer = Layer.TwoHanded;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue