Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Fix crashes in such a stupid way...
Browse files Browse the repository at this point in the history
  • Loading branch information
fengberd committed Jul 21, 2016
1 parent eb0c296 commit 6100b5d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "net.fengberd.minecraftpe_server"
minSdkVersion 14
targetSdkVersion 21
versionCode 1071
versionName "1.0.7.1"
versionCode 1072
versionName "1.0.7.2"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,12 +564,11 @@ public void run()
break;
case DOWNLOAD_SERVER_CODE:
AlertDialog.Builder download_dialog_builder=new AlertDialog.Builder(this);
final String[] jenkins=nukkitMode?jenkins_nukkit:jenkins_pocketmine,values=new String[jenkins.length];
String[] jenkins=nukkitMode?jenkins_nukkit:jenkins_pocketmine,values=new String[jenkins.length];
for(int i=0;i<jenkins.length;i++)
{
String[] split=jenkins[i].split("\\|",2);
values[i]=split[0];
jenkins[i]=split[1];
}
download_dialog_builder.setTitle(getString(R.string.message_select_repository).replace("%s",nukkitMode?"Nukkit":"PocketMine"));
download_dialog_builder.setItems(values,new DialogInterface.OnClickListener()
Expand All @@ -587,7 +586,9 @@ public void onClick(DialogInterface p1,final int p2)
{
public void run()
{
downloadServer(jenkins[p2],new File(ServerUtils.getDataDirectory()+"/"+(nukkitMode?"Nukkit.jar":"PocketMine-MP.phar")),processing_dialog);
String[] wtf=nukkitMode?jenkins_nukkit:jenkins_pocketmine;
wtf=wtf[p2].split("\\|");
downloadServer(wtf[1],new File(ServerUtils.getDataDirectory()+"/"+(nukkitMode?"Nukkit.jar":"PocketMine-MP.phar")),processing_dialog);
runOnUiThread(new Runnable()
{
public void run()
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="message_install_fail_path">安装失败,请将 "nukkit_library.tar.gz" 放入</string>
<string name="message_no_artifacts">未找到构建成功的文件</string>
<string name="message_select_repository">请选择%s源</string>

<string name="label_management">服务器管理</string>
<string name="label_type">服务器类型</string>
<string name="label_console">控制台个性化</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="message_install_fail_path">Install failed,please put "nukkit_library.tar.gz" to</string>
<string name="message_no_artifacts">No artifacts found.</string>
<string name="message_select_repository">Please select %s repository</string>
<string name="label_management">Server Management</string>
<string name="label_type">Server Type</string>
<string name="label_console">Console Customize</string>
Expand Down

2 comments on commit 6100b5d

@TheDiamondYT1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did you get you get the java 8 library for nukkit? I need to know so i can add copyright in my JRE4Droid app

@fengberd
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From oracle website.

Please sign in to comment.