1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-23 13:43:22 +00:00

Fix a couple of build failures

This commit is contained in:
SquidDev 2019-06-02 18:36:23 +01:00
parent 18aee02221
commit b6715bd812
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,7 @@
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.client.model.data.EmptyModelData;
import net.minecraftforge.client.model.data.IModelData;
import javax.annotation.Nonnull;
import javax.vecmath.Matrix4f;
@ -44,7 +45,15 @@ public TurtleMultiModel( IBakedModel baseModel, IBakedModel overlayModel, Matrix
@Nonnull
@Override
@Deprecated
public List<BakedQuad> getQuads( IBlockState state, EnumFacing side, @Nonnull Random rand )
{
return getQuads( state, side, rand, EmptyModelData.INSTANCE );
}
@Nonnull
@Override
public List<BakedQuad> getQuads( IBlockState state, EnumFacing side, @Nonnull Random rand, @Nonnull IModelData data )
{
if( side != null )
{

View File

@ -7,6 +7,9 @@
-- they relied on Minecraft's character mappings. However, if CC emulators have
-- taught me anything, it's that emulating LWJGL's weird key handling is nigh-on
-- impossible.
local expect = _G["~expect"]
local tKeys = {}
tKeys[32] = 'space'
tKeys[39] = 'apostrophe'