You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/05/03 14:26:25 UTC

[incubator-nlpcraft] branch NLPCRAFT-314 updated: Code review.

This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch NLPCRAFT-314
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-314 by this push:
     new fa56969  Code review.
fa56969 is described below

commit fa56969a7bce4b5d22689c819a504055bf572576
Author: Aaron Radzinski <ar...@apache.org>
AuthorDate: Mon May 3 07:24:36 2021 -0700

    Code review.
---
 .../nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java    | 8 ++++----
 nlpcraft-examples/minecraft/src/main/resources/block.json         | 4 ++--
 nlpcraft-examples/minecraft/src/main/resources/item.json          | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java
index 7625cc9..4b09cf1 100644
--- a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java
+++ b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java
@@ -108,8 +108,8 @@ public class NCMinecraftFilesDump {
             write(writer, " * limitations under the License.");
             write(writer, " *");
             write(writer, " * Auto-generated on: " + new Date());
-            write(writer, " * Dump file with minecraft '" + type + "' game objects. Was made for specified game version: " + ver);
-            write(writer, " *");
+            write(writer, " * Dump file with minecraft '" + type + "' game objects.");
+            write(writer, " * Made for the game version: " + ver);
             write(writer, " */");
 
             writer.newLine();
@@ -147,13 +147,13 @@ public class NCMinecraftFilesDump {
      */
     public static void main(String[] args) throws IOException {
         if (args.length != 2)
-            throw new IllegalArgumentException("2 mandatory parameters should be defined: 'type' and 'version'");
+            throw new IllegalArgumentException("2 mandatory parameters should be defined: 'type' and 'version'.");
 
         String type = args[0];
         String ver = args[1];
 
         if (!type.equals("block") && !type.equals("item"))
-            throw new IllegalArgumentException("Unsupported type, supported are 'block' and 'item'");
+            throw new IllegalArgumentException("Unsupported type, supported are 'block' and 'item'.");
 
         if (type.equals("block")) {
             DefaultedRegistry<Block> reg = mkRegistry("block");
diff --git a/nlpcraft-examples/minecraft/src/main/resources/block.json b/nlpcraft-examples/minecraft/src/main/resources/block.json
index 599ef46..ebefc91 100644
--- a/nlpcraft-examples/minecraft/src/main/resources/block.json
+++ b/nlpcraft-examples/minecraft/src/main/resources/block.json
@@ -15,8 +15,8 @@
  * limitations under the License.
  *
  * Auto-generated on: Mon May 03 13:04:01 MSK 2021
- * Dump file with minecraft 'block' game objects. Was made for specified game version: 1.16.4
- *
+ * Dump file with minecraft 'block' game objects.
+ * Made for the game version: 1.16.4
  */
 
 {
diff --git a/nlpcraft-examples/minecraft/src/main/resources/item.json b/nlpcraft-examples/minecraft/src/main/resources/item.json
index 291f401..bfca93b 100644
--- a/nlpcraft-examples/minecraft/src/main/resources/item.json
+++ b/nlpcraft-examples/minecraft/src/main/resources/item.json
@@ -15,8 +15,8 @@
  * limitations under the License.
  *
  * Auto-generated on: Mon May 03 13:04:39 MSK 2021
- * Dump file with minecraft 'item' game objects. Was made for specified game version: 1.16.4
- *
+ * Dump file with minecraft 'item' game objects.
+ * Made for the game version: 1.16.4
  */
 
 {