mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fix lexicon npe, closes #94
This commit is contained in:
1 parent
eedfff10f1
commit
6f6f330a5a
1 file changed
+2
-1
@@ -11,6 +11,7 @@
|
||||
package vazkii.botania.api.wiki;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
@@ -53,7 +54,7 @@ public class SimpleWikiProvider implements IWikiProvider {
|
||||
if(block == null)
|
||||
return null;
|
||||
|
||||
ItemStack stack = block.getPickBlock(pos, world, bPos, null);
|
||||
ItemStack stack = block.getPickBlock(pos, world, bPos, Minecraft.getMinecraft().thePlayer);
|
||||
|
||||
if(stack == null || stack.getItem() == null)
|
||||
stack = new ItemStack(block, 1, block.getDamageValue(world, bPos));
|
||||
|
||||
Reference in new issue
Block a user