Fix wither arrow shield typo

This commit is contained in:
fullwall 2022-09-15 01:01:48 +08:00
parent 12b60fcdf2
commit 03e757d411
13 changed files with 37 additions and 29 deletions

View File

@ -22,7 +22,7 @@
<repository> <repository>
<id>spigot-repo</id> <id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository> </repository>
<repository> <repository>
<id>jitpack.io</id> <id>jitpack.io</id>
<url>https://jitpack.io</url> <url>https://jitpack.io</url>
@ -38,6 +38,10 @@
<id>sk89q-repo</id> <id>sk89q-repo</id>
<url>https://maven.enginehub.org/repo/</url> <url>https://maven.enginehub.org/repo/</url>
</repository> </repository>
<repository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/repository/public/</url>
</repository>
</repositories> </repositories>
<dependencies> <dependencies>
@ -48,6 +52,12 @@
<type>jar</type> <type>jar</type>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.7.0</version>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>org.powermock</groupId> <groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId> <artifactId>powermock-module-junit4</artifactId>

View File

@ -1,21 +1,19 @@
name: Citizens name: Citizens
authors: [fullwall] authors: [fullwall]
softdepend: [Vault, PlaceholderAPI, WorldGuard] softdepend: [Vault, PlaceholderAPI, WorldGuard, ProtocolLib]
version: ${project.version} (build ${BUILD_NUMBER}) version: ${project.version} (build ${BUILD_NUMBER})
main: net.citizensnpcs.Citizens main: net.citizensnpcs.Citizens
website: http://www.citizensnpcs.co website: https://www.citizensnpcs.co
api-version: "1.13" api-version: "1.13"
commands: commands:
traitc: traitc:
aliases: [trc] aliases: [trc]
description: Configures traits description: Configures traits
permission: citizens.trait.help permission: citizens.trait.help
trait: trait:
aliases: [tr]
description: Trait commands description: Trait commands
permission: citizens.trait.help permission: citizens.trait.help
citizens: citizens:
aliases: [citizens2]
description: Administration commands description: Administration commands
permission: citizens.citizens.help permission: citizens.citizens.help
npc: npc:

View File

@ -66,8 +66,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean df() { public boolean df() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.df() return npc == null || !npc.data().has("wither-arrow-shield") ? super.df()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -66,8 +66,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean di() { public boolean di() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.di() return npc == null || !npc.data().has("wither-arrow-shield") ? super.di()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -67,8 +67,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean dn() { public boolean dn() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.dn() return npc == null || !npc.data().has("wither-arrow-shield") ? super.dn()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -75,8 +75,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean dA() { public boolean dA() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.dA() return npc == null || !npc.data().has("wither-arrow-shield") ? super.dA()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -68,8 +68,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean dW() { public boolean dW() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.dW() return npc == null || !npc.data().has("wither-arrow-shield") ? super.dW()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -131,8 +131,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean J_() { public boolean J_() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.J_() return npc == null || !npc.data().has("wither-arrow-shield") ? super.J_()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -157,8 +157,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean S_() { public boolean S_() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.S_() return npc == null || !npc.data().has("wither-arrow-shield") ? super.S_()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
} }

View File

@ -134,8 +134,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean isPowered() { public boolean isPowered() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.isPowered() return npc == null || !npc.data().has("wither-arrow-shield") ? super.isPowered()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -136,8 +136,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean isPowered() { public boolean isPowered() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.isPowered() return npc == null || !npc.data().has("wither-arrow-shield") ? super.isPowered()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -128,8 +128,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean isPowered() { public boolean isPowered() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.isPowered() return npc == null || !npc.data().has("wither-arrow-shield") ? super.isPowered()
: npc.data().get("wither-arrow-damageable"); : npc.data().get("wither-arrow-shield");
} }
@Override @Override

View File

@ -64,8 +64,8 @@ public class WitherController extends MobEntityController {
@Override @Override
public boolean cm() { public boolean cm() {
return npc == null || !npc.data().has("wither-arrow-damageable") ? super.cm() return npc == null || !npc.data().has("wither-arrow-shield") ? super.cm()
: npc.data().<Boolean> get("wither-arrow-damageable"); : npc.data().<Boolean> get("wither-arrow-shield");
} }
@Override @Override