File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
java/com/thaddev/iw2thshortbows
content/entities/projectiles Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ plugins {
1919apply plugin : ' org.spongepowered.mixin'
2020apply plugin : ' org.parchmentmc.librarian.forgegradle'
2121
22- version = ' 1.1.0'
22+ version = ' 1.1.0-patch1 '
2323group = ' com.thaddev.iw2thshortbows' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2424archivesBaseName = ' iw2thshortbows'
2525
Original file line number Diff line number Diff 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" ;
Original file line number Diff line number Diff line change 2020import net .minecraft .world .entity .boss .enderdragon .phases .EnderDragonPhase ;
2121import net .minecraft .world .entity .boss .wither .WitherBoss ;
2222import net .minecraft .world .entity .monster .EnderMan ;
23+ import net .minecraft .world .entity .monster .Enemy ;
2324import net .minecraft .world .entity .player .Player ;
2425import net .minecraft .world .entity .projectile .AbstractArrow ;
2526import 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 ()));
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ license="MIT"
44
55[[mods ]]
66modId = " iw2thshortbows"
7- version = " 1.1.0" # mandatory
7+ version = " 1.1.0-patch1 " # mandatory
88displayName = " IWant2TryHard's Shortbows" # mandatory
99# updateJSONURL="https://change.me.example.invalid/updates.json" #optional
1010displayURL = " https://github.com/MyNameTsThad/IW2THs-Shortbows" # optional
You can’t perform that action at this time.
0 commit comments