Skip to content

Commit

Permalink
Fix #216 and #217
Browse files Browse the repository at this point in the history
  • Loading branch information
Bulldog83 committed Jun 27, 2021
1 parent 30204a2 commit daefcc4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ def useApi(String dep) {

processResources {
inputs.property "version", project.version
duplicatesStrategy = 'WARN'
duplicatesStrategy = 'EXCLUDE'

from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}

from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}

// ensure that the encoding is set to UTF-8, no matter what the system default is
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ archives_base_name = better-end
patchouli_version = 50-FABRIC
fabric_version = 0.32.9+1.16
canvas_version = 1.0.+
bclib_version = 0.1.42
bclib_version = 0.1.44
rei_version = 5.8.10
4 changes: 2 additions & 2 deletions src/main/java/ru/betterend/blocks/EndStoneSmelter.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public EndStoneSmelter() {
.resistance(100F)
.requiresCorrectToolForDrops()
.sound(SoundType.STONE));
this.registerDefaultState(this.stateDefinition.any()
registerDefaultState(this.stateDefinition.any()
.setValue(FACING, Direction.NORTH)
.setValue(LIT, false));
}
Expand All @@ -75,7 +75,7 @@ private void openScreen(Level world, BlockPos pos, Player player) {

@Override
public BlockState getStateForPlacement(BlockPlaceContext ctx) {
return this.defaultBlockState().setValue(FACING, ctx.getHorizontalDirection().getOpposite());
return defaultBlockState().setValue(FACING, ctx.getHorizontalDirection().getOpposite());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public void tick() {
if (recipe == null) {
recipe = level.getRecipeManager().getRecipeFor(RecipeType.BLASTING, this, level).orElse(null);
}
boolean accepted = this.canAcceptRecipeOutput(recipe);
boolean accepted = canAcceptRecipeOutput(recipe);
if (!burning && accepted) {
burnTime = getFuelTime(fuel);
fuelTime = burnTime;
Expand All @@ -265,7 +265,7 @@ public void tick() {
}

if (burning && accepted) {
this.smeltTime++;
smeltTime++;
if (smeltTime == smeltTimeTotal) {
smeltTime = 0;
smeltTimeTotal = getSmeltTime();
Expand All @@ -276,7 +276,7 @@ public void tick() {
smeltTime = 0;
}
}

burning = isBurning();
if (initialBurning != burning) {
level.setBlock(worldPosition, level.getBlockState(worldPosition).setValue(EndStoneSmelter.LIT, burning), 3);
setChanged();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"fabricloader": ">=0.11.0",
"fabric": ">=0.32.0",
"minecraft": ">=1.16.4",
"bclib": ">=0.1.42"
"bclib": ">=0.1.44"
},
"suggests": {
"byg": ">=1.1.3",
Expand Down

0 comments on commit daefcc4

Please sign in to comment.