Skip to content

Commit ef7b06c

Browse files
committed
Update to 1.20.4
1 parent 742e2f3 commit ef7b06c

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "fabric-loom" version "1.3-SNAPSHOT"
2+
id "fabric-loom" version "1.5.+"
33
id 'maven-publish'
44
}
55

gradle.properties

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ archives_base_name=build_rush
88

99
# Fabric Properties
1010
# check these on https://fabricmc.net/develop/
11-
minecraft_version=1.20.1
12-
yarn_mappings=1.20.1+build.10
13-
loader_version=0.14.21
14-
fabric_version=0.86.1+1.20.1
11+
minecraft_version=1.20.4
12+
yarn_mappings=1.20.4+build.1
13+
loader_version=0.15.6
14+
fabric_version=0.91.1+1.20.4
1515

1616
# check this on https://nucleoid.xyz/use/
17-
plasmid_version=0.5.101-SNAPSHOT+1.20.1
17+
plasmid_version=0.5.102-SNAPSHOT+1.20.4
1818

1919
# check this on https://modrinth.com/mod/nota/changelog
2020
nota_version=0.1.0+1.19.4
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/fr/hugman/build_rush/build/BuildUtil.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66
import net.minecraft.block.*;
77
import net.minecraft.block.entity.BlockEntity;
88
import net.minecraft.block.enums.BedPart;
9+
import net.minecraft.block.enums.BlockFace;
910
import net.minecraft.block.enums.DoubleBlockHalf;
1011
import net.minecraft.block.enums.SlabType;
11-
import net.minecraft.block.enums.WallMountLocation;
1212
import net.minecraft.fluid.Fluids;
1313
import net.minecraft.item.BlockItem;
1414
import net.minecraft.item.ItemStack;
1515
import net.minecraft.item.Items;
16-
import net.minecraft.item.SkullItem;
16+
import net.minecraft.item.PlayerHeadItem;
1717
import net.minecraft.nbt.NbtCompound;
1818
import net.minecraft.registry.tag.BlockTags;
19-
import net.minecraft.state.property.DirectionProperty;
2019
import net.minecraft.state.property.Properties;
2120
import net.minecraft.util.math.BlockPos;
2221
import net.minecraft.util.math.Direction;
@@ -34,7 +33,7 @@ public static boolean areEqual(BlockState sourceState, @Nullable NbtCompound sou
3433
if(sourceBlock != targetBlock) return false;
3534

3635
if(sourceBlock instanceof ButtonBlock) {
37-
if(sourceState.get(ButtonBlock.FACE) == WallMountLocation.WALL) {
36+
if(sourceState.get(ButtonBlock.FACE) == BlockFace.WALL) {
3837
return sourceState.get(ButtonBlock.FACING) == targetState.get(ButtonBlock.FACING);
3938
}
4039

@@ -185,7 +184,7 @@ public static int getBuildComplexity(CachedBlocks build) {
185184
public static void addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity) {
186185
NbtCompound nbtCompound = blockEntity.createNbtWithIdentifyingData();
187186
BlockItem.setBlockEntityNbt(stack, blockEntity.getType(), nbtCompound);
188-
if (stack.getItem() instanceof SkullItem && nbtCompound.contains("SkullOwner")) {
187+
if (stack.getItem() instanceof PlayerHeadItem && nbtCompound.contains("SkullOwner")) {
189188
NbtCompound nbtCompound2 = nbtCompound.getCompound("SkullOwner");
190189
NbtCompound nbtCompound3 = stack.getOrCreateNbt();
191190
nbtCompound3.put("SkullOwner", nbtCompound2);

src/main/java/fr/hugman/build_rush/game/state/BRActive.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,15 @@ public void enable(List<Plot> plots) {
272272
}
273273

274274
this.songManager.addPlayers(this.space.getPlayers());
275+
this.songManager.setVolume((byte) 80);
275276
this.songManager.setPlaying(true);
276277
}
277278

278279
public void tick() {
279280
this.tick++;
280281
if (this.isClosing()) {
281282
var progress = (float) (this.closeTick - this.tick) / this.closeTicks;
282-
this.songManager.setVolume((byte) (progress * 100));
283+
this.songManager.setVolume((byte) (progress * 80));
283284
if (this.tick >= this.closeTick) {
284285
this.space.close(GameCloseReason.FINISHED);
285286
}

0 commit comments

Comments
 (0)