mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 14:24:42 +00:00
Fix crashes on server from SideOnly
This commit is contained in:
1 parent
99646e8656
commit
0df025c2d5
25 files changed
+148
-63
No files matched your search
@@ -30,6 +30,9 @@ import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.api.apiculture.BeeManager;
|
||||
import forestry.api.apiculture.EnumBeeType;
|
||||
import forestry.api.apiculture.IBee;
|
||||
@@ -185,6 +188,7 @@ public class BlockBeeHives extends BlockContainer implements IItemModelRegister,
|
||||
|
||||
/* ITEM MODELS */
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerModel(Item item, IModelManager manager) {
|
||||
for (HiveType hiveType : HiveType.VALUES) {
|
||||
manager.registerItemModel(item, hiveType.getMeta(), "beehives/" + hiveType.getName());
|
||||
|
||||
Reference in new issue
Block a user