Fixed a possible NPE in casting basins/tables

This commit is contained in:
Arthur Uzulin committed 2013-10-13 13:22:39 +11:00
1 parent 7530d0d151
commit 7a8c63d647
1 file changed
+2 -2
@@ -173,7 +173,7 @@ public class SearedRender implements ISimpleBlockRenderingHandler
ItemStack it = logic.getStackInSlot(0);
if(it != null){
CastingRecipe rec = TConstruct.tableCasting.getCastingRecipe(logic.liquid, it);
if(rec != null){
if(rec != null && rec.fluidRenderProperties != null){
minHeight = rec.fluidRenderProperties.minHeight;
maxHeight = rec.fluidRenderProperties.maxHeight;
@@ -388,7 +388,7 @@ public class SearedRender implements ISimpleBlockRenderingHandler
ItemStack it = logic.getStackInSlot(0);
if(it != null){
CastingRecipe rec = TConstruct.basinCasting.getCastingRecipe(logic.liquid, it);
if(rec != null){
if(rec != null && rec.fluidRenderProperties != null){
minHeight = rec.fluidRenderProperties.minHeight;
maxHeight = rec.fluidRenderProperties.maxHeight;