Skip to content

Commit 64efd4b

Browse files
committed
Fixes #9
Fixes #10 Updated README with more complete regulations Updated build.gradle and mcmod.info to properly reflect new version Added new release jar
1 parent da51dfb commit 64efd4b

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ The Minecraft Mod that adds the (movie) HTTYD universe to Minecraft (and more)
55
#### Important
66
This is the 1.7.10 branch
77

8-
### Mod Users
8+
####Before you post an issue:
9+
Search the **[issue tracker]** for it first
910

10-
**Search [here][1] _before_** reporting issues to the [issue tracker][1]
11+
####If you have a log:
12+
Use [gist](https://gist.github.com) or [pastebin](http://pastebin.com/)
1113

1214
### Contributers
1315

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ idea {
2424

2525
apply plugin: 'forge'
2626

27-
version = "1.7.10-10.13.2.1230F-1.0R"
27+
version = "1.7.10-10.13.2.1230F-1.0.1R"
2828
group= "com.httymd" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2929
archivesBaseName = "HTTYMD"
3030

java/com/httymd/client/event/PlayerClientHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void beforeBodyRender(RenderLivingEvent.Pre event) {
4343
ItemStack stack = Utils.getArmor(event.entity, 2);
4444
if (stack == null)
4545
return;
46-
ItemGlideArmor armor = (ItemGlideArmor) stack.getItem();
46+
ItemGlideArmor armor = stack.getItem() instanceof ItemGlideArmor ? (ItemGlideArmor) stack.getItem() : null;
4747
if (armor != null) {
4848
if (armor.isGliding(stack)) {
4949
glideRender.doRender(event.entity, event.x, event.y + event.entity.yOffset, event.z, 0.0F, playerTicks);

java/com/httymd/util/DragonDamageSource.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package com.httymd.util;
22

3-
import org.apache.commons.lang3.RandomUtils;
4-
53
import net.minecraft.entity.Entity;
64
import net.minecraft.util.EntityDamageSource;
75
import net.minecraft.util.EntityDamageSourceIndirect;
6+
import scala.util.Random;
87

98
public class DragonDamageSource {
109

10+
private static final Random rng = new Random();
11+
1112
public static EntityDamageSource getAbilityDamage(Entity attacker, Entity source, String add) {
1213
return attacker == null ? new EntityDamageSource(Utils.getModString("dragon.ability") + add, source)
1314
: new EntityDamageSourceIndirect(Utils.getModString("dragon.ability") + add, source, attacker);
@@ -34,7 +35,7 @@ public static EntityDamageSource getProjectileFireDamage(Entity attacker, Entity
3435
}
3536

3637
public static EntityDamageSource getDirectDamage(Entity attacker) {
37-
return new EntityDamageSource(Utils.getModString("dragon.direct." + RandomUtils.nextInt(1, 3)), attacker);
38+
return new EntityDamageSource(Utils.getModString("dragon.direct." + rng.nextInt(2)+1), attacker);
3839
}
3940

4041
}
807 KB
Binary file not shown.

resources/mcmod.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"modid": "httymd",
33
"name": "How to Train Your Minecraft Dragon",
44
"description": "The Mod based on How to Train your Dragon (movie) which adds everything from the franchise. From small daggers to Boss Dragons and everything in betweens. Try out Hiccups Glide Suit or the Crossbow, or you could fly your very own, loyal dragon named what you want them to.",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"mcversion": "${mcversion}",
77
"url": "",
88
"updateUrl": "",

0 commit comments

Comments
 (0)