Skip to content

Commit

Permalink
upgrade 1.16.3 and hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
augustresende committed Oct 27, 2020
1 parent d8e929d commit b308994
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 25 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
This version (0.2.3) fix a weird bug that crashes on Fabric version, and upgrade everything to 1.16.3 (but it still works on older versions 1.16.x)

===============================================================================

This version (0.2.2) fix a bug when mod is trying to start in Forge Server.

===============================================================================
Expand Down
3 changes: 2 additions & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.4-SNAPSHOT'
id 'fabric-loom' version '0.5-SNAPSHOT'
}

sourceCompatibility = JavaVersion.VERSION_1_8
Expand All @@ -18,6 +18,7 @@ sourceSets {
}
}


archivesBaseName = project.hasProperty("outputJarBaseName") ? project.outputJarBaseName : "fabric"

minecraft {
Expand Down
6 changes: 3 additions & 3 deletions fabric/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ mod_id=vanillaexperience

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.16.2
yarn_mappings=1.16.2+build.19
loader_version=0.9.1+build.205
minecraft_version=1.16.3
yarn_mappings=1.16.3+build.47
loader_version=0.10.5+build.213

# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private void tryUseTotem(DamageSource source, CallbackInfoReturnable<Boolean> in
player.clearStatusEffects();
player.addStatusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 900, 1));
player.addStatusEffect(new StatusEffectInstance(StatusEffects.ABSORPTION, 100, 1));
player.addStatusEffect(new StatusEffectInstance(StatusEffects.FIRE_RESISTANCE, 800, 2)); // 1.16.2
player.addStatusEffect(new StatusEffectInstance(StatusEffects.FIRE_RESISTANCE, 800, 1));
player.world.sendEntityStatus(player, (byte)35);

info.setReturnValue(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Mixin(EntityType.class)
public class EntityTypeMixin {

@Redirect(method = "method_29496", at = @At(value = "INVOKE", target = "Lnet/minecraft/block/BlockState;isOf(Lnet/minecraft/block/Block;)Z", ordinal = 2))
@Redirect(method = "isInvalidSpawn(Lnet/minecraft/block/BlockState;)Z", at = @At(value = "INVOKE", target = "Lnet/minecraft/block/BlockState;isOf(Lnet/minecraft/block/Block;)Z", ordinal = 2))
private boolean restoreWitherRoseSpawning(BlockState blockState, Block block) {
return false; // return false to method that checks if is inside a Whiter Rose
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

// this abstracts Kelp, TwistingVines and WeepingVines
@Mixin(AbstractPlantPartBlock.class)
public class ZeroTickAbstractPlantPartBlock extends AbstractBlock {
public abstract class ZeroTickAbstractPlantPartBlock extends AbstractBlock {

public ZeroTickAbstractPlantPartBlock(Settings settings) {
super(settings);
Expand All @@ -28,14 +28,4 @@ public void scheduledTick(final BlockState state, final ServerWorld world, final
super.randomTick(state, world, pos, random);
}
}

@Override
public Item asItem() {
return null;
}

@Override
protected Block asBlock() {
return null;
}
}
8 changes: 4 additions & 4 deletions forge/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=false

mod_version=0.2.2
mod_version=0.2.3
mod_id=vanillaexperience
mc_version=1.16.2
forge_version=33.0.5
forge_mappings=20200707-1.16.1
mc_version=1.16.3
forge_version=34.1.0
forge_mappings=20200916-1.16.2
curseforge_id=393896
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void onWorldJoin(EntityJoinWorldEvent e) {
World world = e.getWorld();
if(world instanceof ServerWorld) {
ServerWorld serverworld = (ServerWorld)world;
if (serverworld.getServer().func_240793_aU_().func_230418_z_().func_236228_i_() && e.getEntity() instanceof net.minecraft.entity.monster.SlimeEntity) e.setCanceled(true);
if (serverworld.getServer().func_240793_aU_().getDimensionGeneratorSettings().func_236228_i_() && e.getEntity() instanceof net.minecraft.entity.monster.SlimeEntity) e.setCanceled(true);
}
}
}
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=false
mod_version=0.2.2
mod_version=0.2.3
mod_id=vanillaexperience
mc_version=1.16.2
forge_version=33.0.5
mc_version=1.16.3
forge_version=34.1.0
curseforge_id=393896

0 comments on commit b308994

Please sign in to comment.