• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

First Machine Age's Mods (Combined repo.)


Commit MetaInfo

Revision64c1ed3a57098d42b6fc148b9b1e79c6824df761 (tree)
Zeit2020-10-09 05:58:06
Autormelchior <melchior@user...>
Commitermelchior

Log Message

PR0.1.3 Fix for bloom bug

Ändern Zusammenfassung

Diff

--- a/AnvilMetalRecovery/AnvilMetalRecovery.csproj
+++ b/AnvilMetalRecovery/AnvilMetalRecovery.csproj
@@ -31,6 +31,12 @@
3131 <ErrorReport>prompt</ErrorReport>
3232 <WarningLevel>4</WarningLevel>
3333 <ConsolePause>false</ConsolePause>
34+ <CustomCommands>
35+ <CustomCommands>
36+ <Command type="AfterBuild" command="7z -tzip a ${ProjectName}_${ProjectConfig}.zip" workingdir="${TargetDir}" />
37+ <Command type="AfterClean" command="rm -f *.zip" workingdir="${TargetDir}" />
38+ </CustomCommands>
39+ </CustomCommands>
3440 </PropertyGroup>
3541 <ItemGroup>
3642 <Reference Include="System" />
--- a/AnvilMetalRecovery/BlockEntities/MetalRecovery_BlockEntityAnvil.cs
+++ b/AnvilMetalRecovery/BlockEntities/MetalRecovery_BlockEntityAnvil.cs
@@ -40,7 +40,7 @@ namespace AnvilMetalRecovery
4040
4141 public override void OnSplit(Vec3i voxelPos)
4242 {
43- if (Voxels[voxelPos.X, voxelPos.Y, voxelPos.Z] == ( byte )EnumVoxelMaterial.Metal) {
43+ if (!this.IsIronBloom && Voxels[voxelPos.X, voxelPos.Y, voxelPos.Z] == ( byte )EnumVoxelMaterial.Metal) {
4444 #if DEBUG
4545 Logger.VerboseDebug("Split some {0} @{1}, Total:{2}", this.BaseMaterial.Collectible.LastCodePart( ), voxelPos, SplitCount);
4646 #endif
@@ -48,7 +48,6 @@ namespace AnvilMetalRecovery
4848 }
4949
5050 base.OnSplit(voxelPos);
51-
5251 }
5352
5453 //Would be great if this returned a bool!
@@ -75,6 +74,8 @@ namespace AnvilMetalRecovery
7574 #endif
7675
7776 Item metalShavingsItem = Api.World.GetItem(MetalShavingsCode.WithPathAppendix("-" + this.BaseMaterial.Collectible.LastCodePart( )));
77+
78+ if (metalShavingsItem == null) return;
7879 ItemStack metalShavingsStack = new ItemStack(metalShavingsItem, metalShavings);
7980
8081 if (byPlayer != null) {
@@ -83,8 +84,6 @@ namespace AnvilMetalRecovery
8384 }
8485 }
8586 }
86-
87-
8887 }
8988 }
9089 }
\ No newline at end of file
--- a/AnvilMetalRecovery/modinfo.json
+++ b/AnvilMetalRecovery/modinfo.json
@@ -1,12 +1,12 @@
11 {
22 "type": "code",
3- "name": "Metal Recovery & More",
4- "description" : "Get back lost scrap and smithing discards, and more.",
3+ "name": "Anvil Metal Recovery",
4+ "description" : "Get back lost scrap and smithing discards.",
55 "authors": ["Melchior"],
66 "ModID":"metalrecovery",
7- "version": "0.1.2",
7+ "version": "0.1.3",
88 "dependencies": {
9- "game": "1.12.11",
9+ "game": "1.13.0",
1010 "survival": ""
1111 },
1212 "website": "http://nowebsite.nope"