Skip to content

Commit

Permalink
Fix crash planting crops in large pot without a substrate
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Aug 23, 2014
1 parent dc37088 commit 2c75437
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Build/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {

apply plugin: 'forge'

version = "1.7.10-1.2.0"
version = "1.7.10-1.2.1"
group= "com.jaquadro.gardenstuff" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "GardenStuff"

Expand Down
2 changes: 1 addition & 1 deletion GardenContainers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {

apply plugin: 'forge'

version = "1.7.10-1.2.0"
version = "1.7.10-1.2.1"
group= "com.jaquadro.gardencontainers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "GardenContainers"

Expand Down
2 changes: 1 addition & 1 deletion GardenContainers/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"modid": "GardenContainers",
"name": "Garden Containers",
"description": "A variety of containers for planting vegetation.",
"version": "1.2.0",
"version": "1.2.1",
"credits": "By jaquadro",
"logoFile": "",
"url": "http://www.jaquadro.com/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class GardenContainers
{
public static final String MOD_ID = "GardenContainers";
public static final String MOD_NAME = "Garden Containers";
public static final String MOD_VERSION = "1.2.0";
public static final String MOD_VERSION = "1.2.1";
static final String SOURCE_PATH = "com.jaquadro.minecraft.gardencontainers.";

public static final ModBlocks blocks = new ModBlocks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public boolean canSustainPlant (IBlockAccess world, int x, int y, int z, ForgeDi
}

protected boolean substrateSupportsCrops (ItemStack substrate) {
if (substrate.getItem() == null)
if (substrate == null || substrate.getItem() == null)
return false;

if (Block.getBlockFromItem(substrate.getItem()) == ModBlocks.gardenFarmland)
Expand Down

0 comments on commit 2c75437

Please sign in to comment.