-
-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'VazkiiMods:1.20.x' into 1.20.x
- Loading branch information
Showing
12 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
Fabric/src/main/java/vazkii/botania/fabric/mixin/PowderSnowBlockMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package vazkii.botania.fabric.mixin; | ||
|
||
import net.minecraft.world.entity.Entity; | ||
import net.minecraft.world.entity.EquipmentSlot; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.level.block.PowderSnowBlock; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
import vazkii.botania.common.handler.EquipmentHandler; | ||
import vazkii.botania.common.item.BotaniaItems; | ||
|
||
@Mixin(PowderSnowBlock.class) | ||
public class PowderSnowBlockMixin { | ||
@Inject(method = "canEntityWalkOnPowderSnow", at = @At("RETURN"), cancellable = true) | ||
private static void canWalkOnPowderSnowWithBotaniaItems(Entity entity, CallbackInfoReturnable<Boolean> cir) { | ||
if (!cir.getReturnValueZ() && entity instanceof LivingEntity living | ||
&& (living.getItemBySlot(EquipmentSlot.FEET).is(BotaniaItems.manaweaveBoots) | ||
|| !EquipmentHandler.findOrEmpty(BotaniaItems.icePendant, living).isEmpty())) { | ||
cir.setReturnValue(true); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public net.minecraft.client.gui.screens.worldselection.WorldPreset <init>(Ljava/lang/String;)V | ||
public net.minecraft.client.renderer.RenderType$CompositeRenderType | ||
public net.minecraft.core.registries.BuiltInRegistries$RegistryBootstrap | ||
private-f net.minecraft.world.level.block.piston.PistonStructureResolver pistonPos | ||
private-f net.minecraft.world.level.block.piston.PistonStructureResolver f_60410_ # pistonPos |
1 change: 1 addition & 0 deletions
1
Xplat/src/generated/resources/.cache/641dbd01a472ac69bbacc6a0d3c386a1d9f1131a
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...generated/resources/data/botania/recipes/stonecutting/livingrock_to_livingrock_slate.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -916,4 +916,6 @@ crowmaki=10 | |
muri_flavo=5 | ||
badsbee=10 | ||
guildes_=pollidisiac | ||
|
||
kboogenerate64=0 | ||
scribe0fdays=3 | ||
skalleton=9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters