mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Fix #730 Crash with corrupted forestry leaves from MFR harvester
This commit is contained in:
1 parent
9d1d1b9ef1
commit
8ef193c8a5
1 file changed
+5
-1
@@ -328,7 +328,11 @@ public class TileLeaves extends TileTreeContainer implements IPollinatable, IFru
|
||||
}
|
||||
|
||||
public String getUnlocalizedName() {
|
||||
return getTree().getGenome().getPrimary().getUnlocalizedName();
|
||||
ITree tree = getTree();
|
||||
if (tree == null) {
|
||||
return "for.leaves.corrupted";
|
||||
}
|
||||
return tree.getGenome().getPrimary().getUnlocalizedName();
|
||||
}
|
||||
|
||||
/* NETWORK */
|
||||
|
||||
Reference in new issue
Block a user