Skip to content

Commit

Permalink
fix nested EntityTag item checks, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Mar 21, 2019
1 parent 8734ee8 commit 7b09bfa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla</artifactId>
<version>1.0</version>
<version>1.1</version>
</parent>

<artifactId>panilla-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,17 @@ public boolean check(INbtTagCompound tag, String nmsItemClassName, IProtocolCons
if (entityTag.hasKey("ArmorItems")) {
INbtTagList items = entityTag.getList("ArmorItems", NbtDataType.COMPOUND);

checkItems(items, nmsItemClassName, protocolConstants, config);
if (!checkItems(items, nmsItemClassName, protocolConstants, config)) {
return false;
}
}

if (entityTag.hasKey("HandItems")) {
INbtTagList items = entityTag.getList("HandItems", NbtDataType.COMPOUND);

checkItems(items, nmsItemClassName, protocolConstants, config);
if (!checkItems(items, nmsItemClassName, protocolConstants, config)) {
return false;
}
}

return true;
Expand Down
8 changes: 4 additions & 4 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla</artifactId>
<version>1.0</version>
<version>1.1</version>
</parent>

<artifactId>panilla-plugin</artifactId>
Expand All @@ -27,19 +27,19 @@
<dependency>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla-api</artifactId>
<version>1.0</version>
<version>1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla-v1_12_R1</artifactId>
<version>1.0</version>
<version>1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla-v1_13_R2</artifactId>
<version>1.0</version>
<version>1.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.ruinscraft</groupId>
<artifactId>panilla</artifactId>
<version>1.0</version>
<version>1.1</version>
<packaging>pom</packaging>

<modules>
Expand Down
4 changes: 2 additions & 2 deletions v1_12_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla</artifactId>
<version>1.0</version>
<version>1.1</version>
</parent>

<artifactId>panilla-v1_12_R1</artifactId>
Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla-api</artifactId>
<version>1.0</version>
<version>1.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions v1_13_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla</artifactId>
<version>1.0</version>
<version>1.1</version>
</parent>

<artifactId>panilla-v1_13_R2</artifactId>
Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>com.ruinscraft</groupId>
<artifactId>panilla-api</artifactId>
<version>1.0</version>
<version>1.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit 7b09bfa

Please sign in to comment.