aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/commands
diff options
context:
space:
mode:
authorAlkalus <Draknyte1@hotmail.com>2020-03-31 16:35:15 +0100
committerAlkalus <Draknyte1@hotmail.com>2020-03-31 16:35:15 +0100
commit2c4a94b808c61d66163d9969017c2819ddb2c5ae (patch)
tree3af0f3ca11bb52b3183ef100e4dc6892a76f83e7 /src/Java/gtPlusPlus/core/commands
parent09b08b073aea41bfbdf189c88cc722912952ea6d (diff)
downloadGT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.tar.gz
GT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.tar.bz2
GT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.zip
+ Added a Pine Tree.
+ Oredict BoP Pinecone if it exists. $ Fixed Algae Farm controller recipe. $ Fixed bug where getOrePrefixStack(rod) would return null. $ Fixed a bug where getItemStackFromFQRN didn't work correctly.
Diffstat (limited to 'src/Java/gtPlusPlus/core/commands')
-rw-r--r--src/Java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/Java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java b/src/Java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java
index a9bd1568b6..c9cdc41424 100644
--- a/src/Java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java
+++ b/src/Java/gtPlusPlus/core/commands/CommandEnableDebugWhileRunning.java
@@ -126,9 +126,9 @@ public class CommandEnableDebugWhileRunning implements ICommand
String aOreDictData = "";
if (!aOreDictNames.isEmpty()) {
for (String tag : aOreDictNames) {
- aOreDictData += (tag+",");
+ aOreDictData += (tag+", ");
}
- if (aOreDictData.endsWith(",")) {
+ if (aOreDictData.endsWith(", ")) {
aOreDictData = aOreDictData.substring(0, aOreDictData.length()-2);
}
}
@@ -167,6 +167,18 @@ public class CommandEnableDebugWhileRunning implements ICommand
}
}
}
+ else if (argString[0].toLowerCase().equals("item")) {
+ if (argString.length > 1 && argString[1] != null && argString[1].length() > 0) {
+ final EntityPlayer P = CommandUtils.getPlayer(S);
+ ItemStack aTest = ItemUtils.getItemStackFromFQRN(argString[1], 1);
+ if (P != null && aTest != null) {
+ PlayerUtils.messagePlayer(P, "Found fluid stack: "+ItemUtils.getItemName(aTest));
+ }
+ else if (P != null && aTest == null) {
+ PlayerUtils.messagePlayer(P, "Could not find valid item.");
+ }
+ }
+ }
else {
final EntityPlayer P = CommandUtils.getPlayer(S);
PlayerUtils.messagePlayer(P, "Invalid command, use '?' as an argument for help.'");
@@ -217,9 +229,9 @@ public class CommandEnableDebugWhileRunning implements ICommand
int a = 0;
String data = "";
for (String tag : aItemDataTags) {
- data += (tag+",");
+ data += (tag+", ");
}
- if (data.endsWith(",")) {
+ if (data.endsWith(", ")) {
data = data.substring(0, data.length()-2);
}
return data;