Skip to content

Commit

Permalink
Deleting null
Browse files Browse the repository at this point in the history
  • Loading branch information
Pulverizer committed Feb 26, 2020
1 parent 61884e8 commit 83abb6e
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 5 deletions.
Binary file modified .gradle/4.4/fileContent/fileContent.lock
Binary file not shown.
Binary file modified .gradle/4.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/4.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/4.4/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.4/taskHistory/taskHistory.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/libs/movecraft.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion build/resources/main/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid": "movecraft",
"name": "Movecraft for Sponge",
"version": "0.2.1",
"version": "0.2.2",
"description": "Allows players to create moving things out of blocks. Airships, Turrets, Submarines, Etc.",
"url": "https://github.com/Pulverizer/Movecraft-for-Sponge",
"authorList": [
Expand Down
2 changes: 1 addition & 1 deletion build/tmp/generateMetadata/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid": "movecraft",
"name": "Movecraft for Sponge",
"version": "0.2.1",
"version": "0.2.2",
"description": "Allows players to create moving things out of blocks. Airships, Turrets, Submarines, Etc.",
"url": "https://github.com/Pulverizer/Movecraft-for-Sponge",
"authorList": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
id = "movecraft",
name = "Movecraft for Sponge",
description = "Allows players to create moving things out of blocks. Airships, Turrets, Submarines, Etc.",
version = "0.2.1",
version = "0.2.2",
url = "https://github.com/Pulverizer/Movecraft-for-Sponge",
authors = {"BernardisGood", "https://github.com/Pulverizer/Movecraft-for-Sponge/graphs/contributors"})

Expand Down
12 changes: 10 additions & 2 deletions src/main/java/io/github/pulverizer/movecraft/craft/Craft.java
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,11 @@ public boolean burnFuel(double movePoints) {
Map<BlockType, Set<Vector3i>> blockMap = hitBox.map(world);

//Find all the furnace blocks
getType().getFurnaceBlocks().forEach(blockType -> furnaceBlocks.addAll(blockMap.get(blockType)));
getType().getFurnaceBlocks().forEach(blockType -> {
if (blockMap.containsKey(blockType)) {
furnaceBlocks.addAll(blockMap.get(blockType));
}
});

//Find and burn fuel
for (Vector3i furnaceLocation : furnaceBlocks) {
Expand Down Expand Up @@ -515,7 +519,11 @@ public int checkFuelStored() {
Map<BlockType, Set<Vector3i>> blockMap = hitBox.map(world);

//Find all the furnace blocks
getType().getFurnaceBlocks().forEach(blockType -> furnaceBlocks.addAll(blockMap.get(blockType)));
getType().getFurnaceBlocks().forEach(blockType -> {
if (blockMap.containsKey(blockType)) {
furnaceBlocks.addAll(blockMap.get(blockType));
}
});

//Find and count the fuel
for (Vector3i furnaceLocation : furnaceBlocks) {
Expand Down

0 comments on commit 83abb6e

Please sign in to comment.