This commit is contained in:
DeadlyMC committed 2020-02-17 11:41:39 +05:30
1 parent 115e6a1777
commit 1ae47f46f5
2 files changed
+5 -6

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
# or better: https://modmuss50.me/fabric.html # or better: https://modmuss50.me/fabric.html
minecraft_version=20w06a minecraft_version=20w07a
yarn_mappings=20w06a+build.15 yarn_mappings=20w07a+build.4
loader_version=0.7.8+build.184 loader_version=0.7.8+build.184
# Mod Properties # Mod Properties
@@ -21,14 +21,13 @@ public abstract class InfestedBlockMixin extends Block
super(block$Settings_1); super(block$Settings_1);
} }
@Inject(method = "onStacksDropped", at = @At(value = "INVOKE", shift = At.Shift.AFTER, @Inject(method = "method_24797", at = @At(value = "INVOKE", shift = At.Shift.AFTER,
target = "Lnet/minecraft/entity/mob/SilverfishEntity;playSpawnEffects()V")) target = "Lnet/minecraft/entity/mob/SilverfishEntity;playSpawnEffects()V"))
private void onOnStacksDropped(BlockState blockState_1, World world_1, BlockPos blockPos_1, private void onOnStacksDropped(World world, BlockPos blockPos, CallbackInfo ci)
ItemStack itemStack_1, CallbackInfo ci)
{ {
if (CarpetSettings.silverFishDropGravel) if (CarpetSettings.silverFishDropGravel)
{ {
dropStack(world_1, blockPos_1, new ItemStack(Blocks.GRAVEL)); dropStack(world, blockPos, new ItemStack(Blocks.GRAVEL));
} }
} }
} }