Browse Source

[MoreLights] [2.0.2.2] Register changes

Zariteis 4 years ago
parent
commit
ab2d7806d3
2 changed files with 4 additions and 4 deletions
  1. 3 3
      MoreLights/ItemUtil.cs
  2. 1 1
      MoreLights/ModInfo.txt

+ 3 - 3
MoreLights/ItemUtil.cs

@@ -20,9 +20,9 @@ namespace MoreLights
         mainTexture = textureTile
       };
 
-      ItemInfo itemInfo = new ItemInfo(ItemType.GENERIC, name, "", textureItem, -1, default, null, null, null, null);
-      itemInfo.Register(name, -1, true);
-      new TileInfo(TileType.NONSOLID, textureTile, gameObject, itemInfo).Register(name, -1, true);
+      ItemInfo itemInfo = new ItemInfo(ItemType.GENERIC, name, "", textureItem);
+      itemInfo.Register(name);
+      new TileInfo(TileType.NONSOLID, textureTile, gameObject, itemInfo).Register(name);
 
       return itemInfo.GetID();
     }

+ 1 - 1
MoreLights/ModInfo.txt

@@ -1 +1 @@
-A mod that adds a some more lights.
+A mod that adds some more lights.