Skip to content

Commit

Permalink
Fixed bug with VoxelMaterials name always being Null
Browse files Browse the repository at this point in the history
  • Loading branch information
Moustachauve committed Sep 21, 2014
1 parent b1e7984 commit 846abc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SEModAPI/API/Definitions/VoxelMaterialsDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public VoxelMaterialsDefinition(MyObjectBuilder_VoxelMaterialDefinition definiti

new public string Name
{
get { return m_baseDefinition.DisplayName; }
get { return m_baseDefinition.Id.SubtypeId; }
set
{
if (m_baseDefinition.DisplayName == value) return;
m_baseDefinition.DisplayName = value;
if (m_baseDefinition.Id.SubtypeId == value) return;
m_baseDefinition.Id.SubtypeId = value;
Changed = true;
}
}
Expand Down

0 comments on commit 846abc2

Please sign in to comment.