Skip to content

Commit

Permalink
Fix the config not saving because it was an enum
Browse files Browse the repository at this point in the history
Also don't change the eye height when elytra flying.
  • Loading branch information
mattmess1221 committed Jun 6, 2016
1 parent f1fdda1 commit 34ccb35
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}
apply plugin: 'net.minecraftforge.gradle.liteloader'

version = '3.1.0'
version = '3.1.1'

minecraft {
version = "1.9.4"
Expand Down
4 changes: 2 additions & 2 deletions build.number
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Fri May 20 05:58:21 EDT 2016
build.number=232
#Mon Jun 06 19:01:43 EDT 2016
build.number=235
4 changes: 2 additions & 2 deletions src/main/java/com/hepolite/fillycam/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import com.mumfrey.liteloader.modconfig.ExposableOptions;

@ExposableOptions(filename = "fillycam")
public enum Config implements Exposable
public class Config implements Exposable
{
INSTANCE;
public static final Config INSTANCE = new Config();

// Core settings
public enum Setting
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hepolite/fillycam/FillyEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static void changeEyeHeight(ReturnEventInfo<EntityPlayer, Float> e)
{

Config config = Config.INSTANCE;
if (!config.getBoolean(Setting.MOD_ENABLED) || e.getSource().isPlayerSleeping())
if (!config.getBoolean(Setting.MOD_ENABLED) || e.getSource().isPlayerSleeping() || e.getSource().isElytraFlying())
{
return;
}
Expand Down

0 comments on commit 34ccb35

Please sign in to comment.