Skip to content

Commit

Permalink
Fix Minema config option
Browse files Browse the repository at this point in the history
  • Loading branch information
mchorse committed Mar 4, 2017
1 parent 25ff133 commit 0ef7324
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/mchorse/blockbuster/camera/ProfileRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import mchorse.blockbuster.commands.CommandCamera;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.ClientCommandHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent.Phase;
Expand Down Expand Up @@ -69,9 +70,11 @@ public void start()
this.mc.thePlayer.sendChatMessage("/gamemode 3");
}

/* Currently Minema supports client side /minema command which
* record video */
if (Blockbuster.proxy.config.camera_minema)
{
this.mc.thePlayer.sendChatMessage("/minema enable");
ClientCommandHandler.instance.executeCommand(this.mc.thePlayer, "/minema enable");
}

this.fov = this.mc.gameSettings.fovSetting;
Expand All @@ -94,7 +97,7 @@ public void stop()

if (Blockbuster.proxy.config.camera_minema)
{
this.mc.thePlayer.sendChatMessage("/minema disable");
ClientCommandHandler.instance.executeCommand(this.mc.thePlayer, "/minema disable");
}

this.mc.gameSettings.fovSetting = this.fov;
Expand Down

0 comments on commit 0ef7324

Please sign in to comment.