Skip to content

Commit

Permalink
Bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Apr 24, 2019
1 parent 26b73c2 commit f15a278
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 24 deletions.
22 changes: 18 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

plugins {
id 'fabric-loom' version '0.2.1-SNAPSHOT'
id 'fabric-loom' version '0.2.2-SNAPSHOT'
id 'com.matthewprenger.cursegradle' version '1.2.0'
id "com.github.breadmoirai.github-release" version "2.2.4"
}
Expand Down Expand Up @@ -53,8 +53,22 @@ configurations {
dependencies {
minecraft "com.mojang:minecraft:${mc_version}"
mappings "net.fabricmc:yarn:${mc_version}+build.${mappings_version}"
modCompile "net.fabricmc:fabric-loader:0.4.0+build.121"
modCompile "net.fabricmc:fabric:0.2.7+build.122"
modCompile "net.fabricmc:fabric-loader:0.4.2+build.132"
modCompile "net.fabricmc:fabric:0.2.7+build.126"

/*
modCompile "net.fabricmc:fabric-lib:0.1.0"
modCompile "net.fabricmc:fabric-networking:0.1.0"
modCompile "net.fabricmc:fabric-networking-blockentity:0.1.0"
modCompile "net.fabricmc:fabric-object-builders:0.1.0"
modCompile "net.fabricmc:fabric-containers:0.1.0"
modCompile "net.fabricmc:fabric-item-groups:0.1.0"
modCompile "net.fabricmc:fabric-client-registries:0.1.0"
modCompile "net.fabricmc:fabric-commands:0.1.0"
modCompile "net.fabricmc:fabric-events-lifecycle:0.1.0"
modCompile "net.fabricmc:fabric-events-interaction:0.1.0"
modCompile "net.fabricmc:fabric-resource-loader:0.1.0"
*/

implementation 'com.google.code.findbugs:jsr305:3.0.2'

Expand Down Expand Up @@ -298,7 +312,7 @@ githubRelease {
token project.hasProperty('githubApiKey') ? project.githubApiKey : ''
owner 'SquidDev-CC'
repo 'CC-Tweaked'
targetCommitish "mc-1.13.x" // TODO: Pull from GrGit
targetCommitish "mc-1.14-fabric" // TODO: Pull from GrGit

tagName "v${mc_version}-${mod_version}"
releaseName "[${mc_version}] ${mod_version}"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
mod_version=1.82.3

# Minecraft properties
mc_version=1.14 Pre-Release 2
mc_version=1.14
mappings_version=1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import dan200.computercraft.ComputerCraft;
import net.minecraft.client.render.model.BakedModel;
import net.minecraft.client.render.model.ModelBakeSettings;
import net.minecraft.client.render.model.ModelLoader;
import net.minecraft.client.render.model.ModelRotationContainer;
import net.minecraft.client.render.model.UnbakedModel;
import net.minecraft.client.texture.Sprite;
import net.minecraft.util.Identifier;
Expand Down Expand Up @@ -81,7 +81,7 @@ public Collection<Identifier> getTextureDependencies( @Nonnull Function<Identifi

@Nullable
@Override
public BakedModel bake( @Nonnull ModelLoader loader, @Nonnull Function<Identifier, Sprite> spriteGetter, @Nonnull ModelRotationContainer state )
public BakedModel bake( @Nonnull ModelLoader loader, @Nonnull Function<Identifier, Sprite> spriteGetter, @Nonnull ModelBakeSettings state )
{
return new TurtleSmartItemModel(
loader.getOrLoadModel( family ).bake( loader, spriteGetter, state ),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dan200/computercraft/shared/Registry.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.item.block.BlockItem;
import net.minecraft.item.BlockItem;
import net.minecraft.recipe.RecipeSerializer;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.MutableRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Map<Integer, String> copyOutput()
}

@Override
public void appendCommandFeedback( TextComponent textComponent )
public void sendMessage( TextComponent textComponent )
{
output.put( output.size() + 1, textComponent.getText() );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import dan200.computercraft.shared.computer.blocks.BlockComputerBase;
import dan200.computercraft.shared.computer.core.ComputerFamily;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.item.BlockItem;
import net.minecraft.item.ItemStack;
import net.minecraft.item.block.BlockItem;
import net.minecraft.text.StringTextComponent;
import net.minecraft.text.TextComponent;
import net.minecraft.text.TextFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Object[] callMethod( @Nonnull IComputerAccess computer, @Nonnull ILuaCont
context.issueMainThreadTask( () ->
{
m_commandBlock.getCommandExecutor().setCommand( command );
m_commandBlock.getCommandExecutor().method_8295();
m_commandBlock.getCommandExecutor().markDirty();
return null;
} );
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.item.ItemStack;
import net.minecraft.item.block.BlockItem;
import net.minecraft.item.BlockItem;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.sound.SoundCategory;
import net.minecraft.util.ActionResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.*;
import net.minecraft.item.block.BlockItem;
import net.minecraft.item.block.LilyPadItem;
import net.minecraft.item.block.SignItem;
import net.minecraft.text.StringTextComponent;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void onContainerPropertyUpdate( Container container, int i, int j )


@Override
public void closeGui()
public void closeContainer()
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface WaterloggableBlock extends Waterloggable
*/
default FluidState getWaterloggedFluidState( BlockState state )
{
return state.get( WATERLOGGED ) ? Fluids.WATER.getState( false ) : Fluids.EMPTY.getDefaultState();
return state.get( WATERLOGGED ) ? Fluids.WATER.getStill( false ) : Fluids.EMPTY.getDefaultState();
}

/**
Expand Down
Binary file added src/main/resources/assets/computercraft/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"has_redstone": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [ { "tag": "minecraft:redstone" } ]
"items": [ { "tag": "forge:dusts/redstone" } ]
}
},
"has_the_recipe": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"has_redstone": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [ { "item": "minecraft:redstone" } ]
"items": [ { "tag": "forge:dusts/redstone" } ]
}
},
"has_the_recipe": {
Expand Down
27 changes: 22 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
{
"schemaVersion": 1,

"id": "computercraft",
"name": "CC: Tweaked",
"version": "${version}",
"side": "universal",
"initializer": "dan200.computercraft.ComputerCraft",
"mixins": {
"client": "computercraft.client.json"
}
"description": "CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles and more to Minecraft.",
"license": "ComputerCraft Public License",
"icon": "assets/computercraft/pack.png",
"contact": {
"homepage": "https://github.com/SquidDev-CC/CC-Tweaked",
"issues": "https://github.com/SquidDev-CC/CC-Tweaked/issues"
},
"authors": [
"Daniel Ratcliffe",
"Aaron Mills",
"SquidDev"
],

"environment": "*",
"entrypoints": {
"main": [ "dan200.computercraft.ComputerCraft" ]
},
"mixins": [
{ "config": "computercraft.client.json", "environment": "client" }
]
}

0 comments on commit f15a278

Please sign in to comment.