Skip to content

Commit 0c686f5

Browse files
Version 1.1.0-patch1-forge-119
- Diamond Headed Arrows now no longer target non hostile entities
1 parent 3ecee39 commit 0c686f5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
apply plugin: 'org.spongepowered.mixin'
2020
apply plugin: 'org.parchmentmc.librarian.forgegradle'
2121

22-
version = '1.1.0'
22+
version = '1.1.0-patch1'
2323
group = 'com.thaddev.iw2thshortbows' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2424
archivesBaseName = 'iw2thshortbows'
2525

src/main/java/com/thaddev/iw2thshortbows/IWant2TryHardsShortbows.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class IWant2TryHardsShortbows {
2626
public static final String MODID = "iw2thshortbows";
2727
public static final Logger LOGGER = LogUtils.getLogger();
2828
public static IWant2TryHardsShortbows instance;
29-
public static String VERSION = "1.1.0";
29+
public static String VERSION = "1.1.0-patch1";
3030

3131
public static final String MESSAGE_WELCOME = "message.iw2thshortbows.welcome";
3232
public static final String SCREEN_VERSION_MISMATCH = "menu.iw2thshortbows.modmismatch";

src/main/java/com/thaddev/iw2thshortbows/content/entities/projectiles/DiamondHeadedArrow.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import net.minecraft.world.entity.boss.enderdragon.phases.EnderDragonPhase;
2121
import net.minecraft.world.entity.boss.wither.WitherBoss;
2222
import net.minecraft.world.entity.monster.EnderMan;
23+
import net.minecraft.world.entity.monster.Enemy;
2324
import net.minecraft.world.entity.player.Player;
2425
import net.minecraft.world.entity.projectile.AbstractArrow;
2526
import net.minecraft.world.item.ItemStack;
@@ -323,6 +324,7 @@ private void setTarget() {
323324
}
324325

325326
potentialTargets.removeIf(LivingEntity::isDeadOrDying);
327+
potentialTargets.removeIf(entity -> !(entity instanceof Enemy));
326328
potentialTargets.removeIf(entity -> !entity.hasLineOfSight(this));
327329
potentialTargets.removeIf(entity -> entity instanceof EnderMan);
328330
potentialTargets.removeIf(entity -> (entity instanceof WitherBoss boss && boss.isPowered()));

src/main/resources/META-INF/mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ license="MIT"
44

55
[[mods]]
66
modId = "iw2thshortbows"
7-
version = "1.1.0" #mandatory
7+
version = "1.1.0-patch1" #mandatory
88
displayName = "IWant2TryHard's Shortbows" #mandatory
99
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
1010
displayURL = "https://github.com/MyNameTsThad/IW2THs-Shortbows" #optional

0 commit comments

Comments
 (0)