mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 05:02:39 +00:00
Fixed a possible NPE in casting basins/tables
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user