Skip to content

Commit

Permalink
Look fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtanksl committed Apr 18, 2024
1 parent dd9efe6 commit 9249e94
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,17 @@ public override Promise Execute()
{
attributes.Add("Item Id: " + ItemMetadata.OpenTibiaId);

if (Item.ActionId > 0)
if (Item != null)
{
attributes.Add("Action Id: " + Item.ActionId);
}
if (Item.ActionId > 0)
{
attributes.Add("Action Id: " + Item.ActionId);
}

if (Item.UniqueId > 0)
{
attributes.Add("Unique Id: " + Item.UniqueId);
if (Item.UniqueId > 0)
{
attributes.Add("Unique Id: " + Item.UniqueId);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion mtanksl.OpenTibia.Game/Common/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public void Start()

QueueForExecution( () =>
{
Logger.WriteLine("MTOTS - An open Tibia server developed by mtanksl");
Logger.WriteLine("MTOTS v1.1 - An open Tibia server developed by mtanksl");
Logger.WriteLine("Source code: https://github.com/mtanksl/OpenTibia");
Expand Down
2 changes: 1 addition & 1 deletion mtanksl.OpenTibia.Game/mtanksl.OpenTibia.Game.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>$(DefineConstants);AOT</DefineConstants>
<DefineConstants>$(DefineConstants);_AOT</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\netstandard2.0\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
</PropertyGroup>
</Project>

0 comments on commit 9249e94

Please sign in to comment.