mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fix crash serverside. Closes #197
This commit is contained in:
1 parent
759bf2835d
commit
62b39ee682
2 files changed
+4
No files matched your search
@@ -10,6 +10,8 @@
|
||||
*/
|
||||
package vazkii.botania.common.lexicon;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import vazkii.botania.client.core.handler.PersistentVariableHelper;
|
||||
|
||||
@@ -20,6 +22,7 @@ public class DLexiconEntry extends BLexiconEntry {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean isVisible() {
|
||||
return !PersistentVariableHelper.dog;
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ public class PageBrew extends PageRecipe implements ITwoNamedPage {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void renderRecipe(IGuiLexiconEntry gui, int mx, int my) {
|
||||
int width = gui.getWidth() - 30;
|
||||
int height = gui.getHeight();
|
||||
|
||||
Reference in new issue
Block a user