mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-21 15:41:19 +01:00
Also include endercrystal in edit commands
This commit is contained in:
parent
d0616e873b
commit
f17dfc7c07
@ -240,7 +240,7 @@ public class editjobs implements Cmd {
|
||||
|
||||
try {
|
||||
value = Double.parseDouble(args[5]);
|
||||
} catch (Throwable e) {
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -495,13 +495,18 @@ public class editjobs implements Cmd {
|
||||
entity = EntityType.valueOf(myKey.toUpperCase());
|
||||
}
|
||||
|
||||
if (entity != null && entity.isAlive()) {
|
||||
if (entity != null) {
|
||||
if (entity.isAlive()) {
|
||||
type = entity.toString();
|
||||
id = entity.getTypeId();
|
||||
|
||||
// using breeder finder
|
||||
if (actionT == ActionType.BREED)
|
||||
Jobs.getGCManager().useBreederFinder = true;
|
||||
} else if (entity == EntityType.ENDER_CRYSTAL) {
|
||||
type = entity.toString();
|
||||
id = entity.getTypeId();
|
||||
}
|
||||
}
|
||||
|
||||
if (entity == null) {
|
||||
|
@ -449,13 +449,18 @@ public class editquests implements Cmd {
|
||||
entity = EntityType.valueOf(myKey.toUpperCase());
|
||||
}
|
||||
|
||||
if (entity != null && entity.isAlive()) {
|
||||
if (entity != null) {
|
||||
if (entity.isAlive()) {
|
||||
type = entity.toString();
|
||||
id = entity.getTypeId();
|
||||
|
||||
// using breeder finder
|
||||
if (actionT == ActionType.BREED)
|
||||
Jobs.getGCManager().useBreederFinder = true;
|
||||
} else if (entity == EntityType.ENDER_CRYSTAL) {
|
||||
type = entity.toString();
|
||||
id = entity.getTypeId();
|
||||
}
|
||||
}
|
||||
|
||||
if (entity == null) {
|
||||
|
@ -521,13 +521,18 @@ public class ConfigManager {
|
||||
entity = EntityType.valueOf(myKey);
|
||||
}
|
||||
|
||||
if (entity != null && entity.isAlive()) {
|
||||
if (entity != null) {
|
||||
if (entity.isAlive()) {
|
||||
type = entity.toString();
|
||||
id = entity.getTypeId();
|
||||
|
||||
// using breeder finder
|
||||
if (actionType == ActionType.BREED)
|
||||
Jobs.getGCManager().useBreederFinder = true;
|
||||
} else if (entity == EntityType.ENDER_CRYSTAL) {
|
||||
type = entity.toString();
|
||||
id = entity.getTypeId();
|
||||
}
|
||||
}
|
||||
|
||||
if (entity == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user