Skip to content

Commit

Permalink
flowerpot_contents tag fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mergu committed Aug 26, 2017
1 parent b81e0e5 commit 5755283
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Expand Up @@ -26,7 +26,8 @@ public class BlockHelper_v1_10_R1 implements BlockHelper {

@Override
public MaterialData getFlowerpotContents(Block block) {
return ((FlowerPot) block.getState()).getContents();
MaterialData contents = ((FlowerPot) block.getState()).getContents();
return contents == null ? new MaterialData(Material.AIR) : contents;
}

@Override
Expand Down
Expand Up @@ -26,7 +26,8 @@ public class BlockHelper_v1_11_R1 implements BlockHelper {

@Override
public MaterialData getFlowerpotContents(Block block) {
return ((FlowerPot) block.getState()).getContents();
MaterialData contents = ((FlowerPot) block.getState()).getContents();
return contents == null ? new MaterialData(Material.AIR) : contents;
}

@Override
Expand Down
Expand Up @@ -26,7 +26,8 @@ public class BlockHelper_v1_9_R2 implements BlockHelper {

@Override
public MaterialData getFlowerpotContents(Block block) {
return ((FlowerPot) block.getState()).getContents();
MaterialData contents = ((FlowerPot) block.getState()).getContents();
return contents == null ? new MaterialData(Material.AIR) : contents;
}

@Override
Expand Down

0 comments on commit 5755283

Please sign in to comment.