Skip to content

Commit bb1604b

Browse files
committed
Temporarily disable grasshopper fly sound and bump version
It was quite repetitive and not very well implemented.
1 parent 78c2060 commit bb1604b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G
44

55
# Mod Information
66
mod_id=mocreatures
7-
mod_version=12.4.7
7+
mod_version=12.4.8
88
maven_group=drzhark.mocreatures
99
archives_base_name=DrZharks-MoCreatures-Extended
1010

src/main/java/drzhark/mocreatures/entity/ambient/MoCEntityDragonfly.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public class MoCEntityDragonfly extends MoCEntityInsect {
2525

2626
public MoCEntityDragonfly(World world) {
2727
super(world);
28-
this.texture = "dragonflya.png";
2928
}
3029

3130
@Override

src/main/java/drzhark/mocreatures/entity/ambient/MoCEntityGrasshopper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*/
44
package drzhark.mocreatures.entity.ambient;
55

6-
import drzhark.mocreatures.MoCTools;
6+
//import drzhark.mocreatures.MoCTools;
77
import drzhark.mocreatures.MoCreatures;
88
import drzhark.mocreatures.entity.MoCEntityInsect;
99
import drzhark.mocreatures.init.MoCLootTables;
1010
import drzhark.mocreatures.init.MoCSoundEvents;
1111
import net.minecraft.entity.SharedMonsterAttributes;
12-
import net.minecraft.entity.player.EntityPlayer;
12+
//import net.minecraft.entity.player.EntityPlayer;
1313
import net.minecraft.util.DamageSource;
1414
import net.minecraft.util.ResourceLocation;
1515
import net.minecraft.util.SoundEvent;
@@ -20,7 +20,7 @@
2020
public class MoCEntityGrasshopper extends MoCEntityInsect {
2121

2222
private int jumpCounter;
23-
private int soundCounter;
23+
//private int soundCounter;
2424

2525
public MoCEntityGrasshopper(World world) {
2626
super(world);
@@ -57,13 +57,13 @@ public ResourceLocation getTexture() {
5757
public void onLivingUpdate() {
5858
super.onLivingUpdate();
5959
if (!this.world.isRemote) {
60-
if (getIsFlying() || !this.onGround) {
60+
/*if (getIsFlying() || !this.onGround) {
6161
EntityPlayer ep = this.world.getClosestPlayerToEntity(this, 5D);
6262
if (ep != null && --this.soundCounter == -1) {
6363
MoCTools.playCustomSound(this, MoCSoundEvents.ENTITY_GRASSHOPPER_FLY);
6464
this.soundCounter = 10;
6565
}
66-
}
66+
}*/
6767

6868
if (this.jumpCounter > 0 && ++this.jumpCounter > 30) {
6969
this.jumpCounter = 0;

0 commit comments

Comments
 (0)