Skip to content

Commit

Permalink
1.20.5 port
Browse files Browse the repository at this point in the history
  • Loading branch information
SFort committed May 6, 2024
1 parent b59a0b5 commit 3442dae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.6-SNAPSHOT'
}

sourceCompatibility = JavaVersion.VERSION_16
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
loader_version=0.15.11
sfini_version=1

# Mod Properties
mod_version = 2.2.2
mod_version = 2.2.3
maven_group = tf.ssf.sfort
archives_base_name = invisframes
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void damage(DamageSource source, float amount, CallbackInfoReturnable<Boo
if (attacker !=null && attacker.isSneaky() && (FrameConf.allowFrameProjectile || source.getName().equals("player"))) {
World world = getWorld();
if (FrameConf.playFrameSound && world instanceof ServerWorld) {
world.playSound(null, getBlockPos(), SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, SoundCategory.PLAYERS, 1, .7f + random.nextFloat()*.3f);
world.playSound(null, getBlockPos(), SoundEvents.ITEM_ARMOR_EQUIP_GENERIC.value(), SoundCategory.PLAYERS, 1, .7f + random.nextFloat()*.3f);
}
this.setInvisible(!this.isInvisible());
info.setReturnValue(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void damage(DamageSource source, float amount, CallbackInfoReturnable<Boo
if (attacker !=null && attacker.isSneaky() && (FrameConf.allowFrameProjectile || source.getName().equals("player"))) {
World world = getWorld();
if (FrameConf.playFrameSound && world instanceof ServerWorld) {
world.playSound(null, getBlockPos(), SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, SoundCategory.PLAYERS, 1, .7f + random.nextFloat()*.3f);
world.playSound(null, getBlockPos(), SoundEvents.ITEM_ARMOR_EQUIP_GENERIC.value(), SoundCategory.PLAYERS, 1, .7f + random.nextFloat()*.3f);
}
this.setInvisible(!(this.isInvisible() || this.getHeldItemStack().isEmpty()));
info.setReturnValue(true);
Expand Down

0 comments on commit 3442dae

Please sign in to comment.