Skip to content

Commit

Permalink
v 0.8.4
Browse files Browse the repository at this point in the history
- fixed null reference exception at loading game
  • Loading branch information
Aviuz committed Sep 30, 2017
1 parent 526d400 commit e64c3fc
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Prison Labor</name>
<author>Avius</author>
<targetVersion>0.17.0</targetVersion>
<description>Version 0.8.3
<description>Version 0.8.4

This mod force prisoners to work. To enable this feature prisoners must have "Force to work" option checked ("Prisoner" tab). Prison labor needs management that consist:
- Motivation - prisoners need to be motivated by presence of colonists. Wardens have new job - supervising prisoners. Low motivation can lead to revolts.
Expand Down
Binary file modified Assemblies/PrisonLabor.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>
<p align="center">
<a href="https://github.com/Aviuz/PrisonLabor/releases">
<img src="https://img.shields.io/badge/version-0.8.3-orange.svg?style=flat" alt="v0.7" />
<img src="https://img.shields.io/badge/version-0.8.4-orange.svg?style=flat" alt="v0.7" />
</a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion Source/Behaviour_MotivationIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public virtual void OnGUI()
{
//TODO add icons enabled
var iconsEnabled = true;
var inGame = Find.GameInfo != null && !WorldRendererUtility.WorldRenderedNow;
var inGame = Find.GameInfo != null && Find.World != null && Find.World.renderer != null && !WorldRendererUtility.WorldRenderedNow;

if (iconsEnabled && inGame)
foreach (var pawn in Find.VisibleMap.mapPawns.AllPawns)
Expand Down
3 changes: 2 additions & 1 deletion Source/PrefsData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public enum Version
v0_8_0,
v0_8_1,
v0_8_2,
v0_8_3
v0_8_3,
v0_8_4
}

[Flags]
Expand Down
8 changes: 8 additions & 0 deletions Source/PrisonLabor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<Compile Include="Tweaks\WorkGiver_Warden_DeliverFood_Tweak.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="..\About\About.xml">
<Link>Organizer\About.xml</Link>
</Content>
<Content Include="..\changelog.txt">
<Link>Organizer\changelog.txt</Link>
</Content>
Expand All @@ -136,6 +139,11 @@
<Link>Organizer\TaskList.txt</Link>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="..\README.md">
<Link>Organizer\README.md</Link>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
4 changes: 2 additions & 2 deletions Source/VersionUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace PrisonLabor
{
class VersionUtility
{
public const Version versionNumber = Version.v0_8_3;
public const string versionString = "0.8.3";
public const Version versionNumber = Version.v0_8_4;
public const string versionString = "0.8.4";

public static void CheckVersion()
{
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Changelog:
0.8.4
- fixed null reference exception at loading game
0.8.3
- fixed bugs with disabling mod (now you can safely disable mod again)
- fixed bug with prioritizing work
Expand Down

0 comments on commit e64c3fc

Please sign in to comment.