Fixed animation issues

This commit is contained in:
Sollace 2018-07-28 14:25:10 +02:00
parent e035a9651e
commit b0c5c5d73f
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,7 @@
package com.voxelmodpack.hdskins.gui; package com.voxelmodpack.hdskins.gui;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.GameType; import net.minecraft.world.GameType;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -27,6 +29,11 @@ public class DummyWorld extends World {
return true; return true;
} }
@Override
public IBlockState getBlockState(BlockPos pos) {
return Blocks.AIR.getDefaultState();
}
@Override @Override
public float getLightBrightness(BlockPos pos) { public float getLightBrightness(BlockPos pos) {
return 1; return 1;

View file

@ -130,6 +130,8 @@ public class EntityPlayerModel extends EntityLivingBase implements IBlankSkinSup
posY = 0; posY = 0;
} }
onGround = posY == 0; onGround = posY == 0;
ticksExisted++;
} }
@Override @Override