Commit Graph

163 Commits

Author SHA1 Message Date
Ghost_chu
c2bd2f03ed Merge remote-tracking branch 'origin/master' 2019-03-29 19:43:06 +08:00
Ghost_chu
c1f585fc61 @Sotr think is a thread-safe issue, so i use ConcurrentSkipListSet to replace TreeSet.
This commit without test, cause the issue #79 's issue i can't reproduce.
2019-03-29 19:42:12 +08:00
Sotr
b83eb29260 Optimize physics 2019-03-29 01:36:39 +08:00
Sotr
8210d0edd8 Merge branch 'master' of github.com:Akarin-project/Akarin 2019-03-29 01:16:00 +08:00
Sotr
839fb7f257 Make get more safe 2019-03-29 01:14:18 +08:00
Sotr
0346f1e26e Optimize rand performance 2019-03-29 01:13:34 +08:00
Sotr
332a8c8d95 Move random light update to off-main thread 2019-03-29 01:13:01 +08:00
Sotr
a32ca321d5 Move sleep weather cycle to off-main thread 2019-03-29 01:10:21 +08:00
Sotr
71899f9fa3 Move difficulty lock w/ sleep time to off-main thread 2019-03-29 01:08:32 +08:00
Sotr
5147c73e6b Automatic post async command 2019-03-28 23:22:21 +08:00
Ghost_chu
2a0f5f618e Allow user custom yggdrasil server url. 2019-03-28 22:53:18 +08:00
Ghost_chu
58a1084a88 Merge branch 'master' of https://github.com/Akarin-project/Akarin 2019-03-28 22:52:11 +08:00
Ghost_chu
e7da0d0837 Easter egg :) 2019-03-28 22:23:21 +08:00
Ghost_chu
f4887873e1 fix ci again 2019-03-28 22:03:30 +08:00
Ghost_chu
7755f7404f Improve #77ffdd0 commit code. 2019-03-28 21:59:50 +08:00
Ghost_chu
77ffdd0475 Fix java.lang.IllegalArgumentException crash issue.
This bug will cause server crash, and these lines will shown in crash-report.

```
Description: Exception in server tick loop

java.lang.ExceptionInInitializerError
	at net.minecraft.server.v1_13_R2.PlayerList.sendAll(PlayerList.java:1099)
	at net.minecraft.server.v1_13_R2.World$2.a(World.java:226)
	at net.minecraft.server.v1_13_R2.WorldBorder.setCenter(WorldBorder.java:94)
	at net.minecraft.server.v1_13_R2.WorldServer.i_(WorldServer.java:112)
	at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:367)
	at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:316)
	at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:789)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException
	at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1314)
	at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1237)
	at java.util.concurrent.Executors.newFixedThreadPool(Executors.java:151)
	at io.akarin.server.core.AkarinAsyncExecutor.<clinit>(AkarinAsyncExecutor.java:12)
	... 8 more

```
2019-03-28 21:35:47 +08:00
Ghost_chu
94ba1bb082 Add chmod in CI script 2019-03-28 21:05:26 +08:00
Ghost_chu
461a379758 fix travis-ci 2019-03-28 20:53:11 +08:00
Sotr
e02706acb7 Oops 2019-03-28 16:13:12 +08:00
Sotr
7f5a66a3ba Revert offline skin w/ user cache fix 2019-03-28 16:11:59 +08:00
Sotr
ae97996ace Dynamic thread count 2019-03-28 15:46:20 +08:00
Sotr
f9eb7d8a60 Support offline skins 2019-03-28 15:28:40 +08:00
Sotr
61b00d4ee8 Async saving players data 2019-03-28 15:14:30 +08:00
Sotr
5a4bc4b4ba Avoid double I/O operation on load player file 2019-03-28 14:22:49 +08:00
Sotr
69b28780a5 Fix thread priority 2019-03-28 13:56:49 +08:00
Sotr
ce6270f9c8 Move player list tick to off-main thread w/ thread sleep time fix 2019-03-28 13:52:57 +08:00
Sotr
706b3f2116 Send mass packets async 2019-03-27 19:37:09 +08:00
Sotr
eb8cb02ae3 Remove more async catcher callers 2019-03-27 17:27:14 +08:00
Sotr
558f284053 Upstream Paper 2019-03-27 15:19:31 +08:00
Sotr
e76c7699ff Upstream Paper 2019-03-27 15:17:33 +08:00
Sotr
5e34def8c6 Caffeine! 2019-03-27 14:44:33 +08:00
Sotr
03c9b6d83f Dev imports 2019-03-27 13:46:04 +08:00
Sotr
bdbe6f78b7 Corrects map 2019-03-27 13:42:09 +08:00
Sotr
998c00ca84 Avoid synchronize for twice 2019-03-27 13:32:45 +08:00
Sotr
8bf5dceb78 Oops 2019-03-27 13:29:23 +08:00
Sotr
09312d1d29 Remove unnecessary synchronization 2019-03-27 13:26:42 +08:00
Sotr
214a8ac4e9 Reduce blocking in ServerConnection 2019-03-27 13:24:58 +08:00
Sotr
7c9fa46996 Merge branch 'master' of github.com:Akarin-project/Akarin 2019-03-27 12:50:29 +08:00
Sotr
f566eab207 Hotfix - sleep time typo 2019-03-27 12:43:16 +08:00
Cushaw_BlueMelon
e460864b71 Update README.md 2019-03-27 00:01:12 +08:00
Sotr
1d92b85e76 Hack IntHashMap to koloboke implemention 2019-03-26 21:13:16 +08:00
Sotr
ecdda0e0c1 Fixes typo 2019-03-26 20:56:27 +08:00
Sotr
ea49f07cc4 Move async task to our executor 2019-03-26 20:41:34 +08:00
Sotr
b9c1d68ccb Fixup PSPE 2019-03-26 20:26:15 +08:00
Sotr
ad23b84309 Remove UNUSED class 2019-03-26 17:16:17 +08:00
Sotr
621ab87fb9 Merge branch 'master' of github.com:Akarin-project/Akarin 2019-03-26 17:12:32 +08:00
Sotr
19a9e9ebb3 Async lighting updates 2019-03-26 17:03:26 +08:00
Sotr
8c841e73fd Places more unsafe timings 2019-03-26 15:50:48 +08:00
Sotr
fb511e9282 Fixup NPE 2019-03-26 00:26:13 +08:00
Sotr
e686eead26 Cleanup 2019-03-26 00:19:07 +08:00