Skip to content

Commit

Permalink
backport v1.7 to MC 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
freneticfeline committed Jan 7, 2018
1 parent 5283ac6 commit cecee98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ buildscript {
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.

version = "1.10-1.7"
version = "1.9-1.7"
group= "net.unladenswallow.minecraft.autofish" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "mod_autofish_forge"

minecraft {
version = "1.10.2-12.18.3.2185"
version = "12.16.1.1887"
runDir = "eclipse"

// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not allways work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20160518"
mappings = "snapshot_20160312"
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import net.unladenswallow.minecraft.autofish.proxy.CommonProxy;
import net.unladenswallow.minecraft.autofish.util.Logger;

@Mod(modid = ModAutoFish.MODID, useMetadata = true, acceptedMinecraftVersions="[1.10,1.11)", acceptableRemoteVersions="[1.10,1.11)",
@Mod(modid = ModAutoFish.MODID, useMetadata = true, acceptedMinecraftVersions="[1.9,1.10)", acceptableRemoteVersions="[1.9,1.10)",
guiFactory = "net.unladenswallow.minecraft.autofish.gui.GuiFactory")
public class ModAutoFish {
public static final String MODID = "mod_autofish";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void onServerTickEvent(ServerTickEvent event) {
*/
@SubscribeEvent
public void onPlaySoundEvent(PlaySoundEvent event) {
if (ModAutoFish.config_autofish_enable && SoundEvents.ENTITY_BOBBER_SPLASH.getSoundName() == event.getSound().getSoundLocation()) {
if (ModAutoFish.config_autofish_enable && SoundEvents.entity_bobber_splash.getSoundName() == event.getSound().getSoundLocation()) {
_autoFish.onBobberSplashDetected(event.getSound().getXPosF(), event.getSound().getYPosF(), event.getSound().getZPosF());
}
}
Expand Down Expand Up @@ -167,8 +167,9 @@ public void onEntityRemoved(Entity entityIn) {}
public void broadcastSound(int soundID, BlockPos pos, int data) {}

@Override
public void playEvent(EntityPlayer player, int type, BlockPos blockPosIn, int data) {}
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress) {}


@Override
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress) {}
public void playAuxSFX(EntityPlayer player, int sfxType, BlockPos blockPosIn, int data) {}
}

0 comments on commit cecee98

Please sign in to comment.