Commit Graph

3862 Commits

Author SHA1 Message Date
TheMode
88ec8ddffa Fix block hashcode 2021-08-13 05:40:29 +02:00
TheMode
0db44545cd Do not copy collections unless necessary 2021-08-13 03:25:11 +02:00
TheMode
322572c96d Rename to LocalCache 2021-08-13 01:13:58 +02:00
TheMode
78126fad6c Add experimental local buffer API. Remove allocation when writing chunk packets (should help with startup time) 2021-08-13 01:08:19 +02:00
TheMode
82602a686e Fix SoundEvent not being an adventure sound type 2021-08-12 22:08:31 +02:00
TheMode
70c757e8b5 Drag click cleanup, fix cursor item not being updated (thanks 1.17.1) 2021-08-12 20:49:03 +02:00
TheMode
c17f07e1d0 More inventory cleanup 2021-08-12 18:06:23 +02:00
themode
6b151c1f7c Inline position check 2021-08-11 22:17:41 +02:00
TheMode
35d63ae547 Implements #equals for BlockImpl 2021-08-11 21:28:13 +02:00
TheMode
be07fdb647 Simplify InventoryClickProcessor 2021-08-11 20:35:30 +02:00
TheMode
5607652378 Fix incorrect held click slot 2021-08-11 19:51:08 +02:00
TheMode
5714d9db79 Merge remote-tracking branch 'origin/new-block-api' into new-block-api 2021-08-11 16:16:01 +02:00
TheMode
8ff4f9432c Init player before setting its instance 2021-08-11 16:15:56 +02:00
TheMode
03c22e591a
Merge pull request #405 from BitCrack/change-to-chunk-coordinate
Cleared up `Section#toChunkCoordinate`.
2021-08-11 15:24:33 +02:00
Matthew
6ba5f64db6 Cleared up Section#toChunkCoordinate 2021-08-11 15:08:54 +02:00
TheMode
ea951f9566 Less allocation for compressed packets 2021-08-11 14:47:20 +02:00
TheMode
13538c768c Less worker threads by default 2021-08-11 14:32:06 +02:00
TheMode
6773ea73ef Merge remote-tracking branch 'origin/new-block-api' into new-block-api 2021-08-11 14:18:19 +02:00
TheMode
fd08cabb6a Change default tab implementation to show all online players 2021-08-11 14:18:04 +02:00
TheMode
1fdf1d62f9
Merge pull request #402 from MrGazdag/patch-9
Fix timeRate 0 when time is 0
2021-08-11 13:42:18 +02:00
MrGazdag
73d54e812e
format code 2021-08-11 13:39:36 +02:00
TheMode
3924d2c0a2 Do not send additional velocity packets to players 2021-08-11 13:23:45 +02:00
MrGazdag
4fc5b4f6c9
fix time 0 2021-08-11 03:41:17 +02:00
TheMode
ae3884efdc Automatically resize BinaryWriter 2021-08-11 01:01:50 +02:00
TheMode
e7e59052a9
Merge pull request #400 from Kebab11noel/merge-number-args
Reduce boilerplate in number arguments
2021-08-10 22:34:55 +02:00
Németh Noel
47a07ca219 Fix exception message 2021-08-10 22:21:19 +02:00
Németh Noel
c94344a22e Reduce boilerplate, add missing toString method 2021-08-10 22:18:11 +02:00
TheMode
7f4e4a9b80 Steal var-int/long code from async-profiler 2021-08-10 18:45:02 +02:00
TheMode
36f3355a12 Use for-each 2021-08-10 01:17:44 +02:00
TheMode
18058bc3c8 Reduce ByteBuffer allocation 2021-08-09 23:54:45 +02:00
TheMode
f489f95bb7 Improve velocity forwarding 2021-08-09 15:18:28 +02:00
TheMode
e9e688b50a Add (and fix) packet reading warning 2021-08-09 15:09:08 +02:00
TheMode
5b8b9cab57 Fix buffer not being emptied 2021-08-09 02:05:51 +02:00
TheMode
1b708bc851 Fix BinaryBuffer#canWrite, use read-only buffers for caching 2021-08-09 01:45:00 +02:00
TheMode
cb7bccf26c Load level.dat nbt on instance init 2021-08-09 01:16:51 +02:00
TheMode
0c52c9eb30 Merge branch 'master' into new-block-api
# Conflicts:
#	src/main/java/net/minestom/server/entity/Entity.java
#	src/main/java/net/minestom/server/entity/Player.java
2021-08-09 00:52:36 +02:00
TheMode
1181724b7a
Merge pull request #389 from Minestom/nio
Switch to NIO
2021-08-09 00:46:56 +02:00
TheMode
10fce3c034 Use lambda for socket accept 2021-08-08 23:51:59 +02:00
TheMode
1b79d2e2e8 Cleanup 2021-08-08 23:03:01 +02:00
TheMode
3881102925 Make Worker a thread 2021-08-08 21:28:38 +02:00
TheMode
99a3ad88a1 Use lambda for socket selection 2021-08-08 21:14:53 +02:00
TheMode
09b7daa985 Fix server shutdown 2021-08-08 19:58:00 +02:00
TheMode
1591df16aa Rename netty to socket wherever possible 2021-08-08 19:11:47 +02:00
TheMode
8f850b8cdb
Merge pull request #395 from AwesomestCode/patch-1
Remove extra space
2021-08-08 19:02:58 +02:00
TheMode
b56509718c Add encryption support 2021-08-08 19:02:36 +02:00
TheMode
f75f755194 Make BinaryBuffer internal 2021-08-08 17:01:44 +02:00
AwesomestCode
938ff330ec
Remove extra space 2021-08-07 19:40:27 -04:00
TheMode
3c660383e5
Merge pull request #394 from Eoghanmc22/patch-0
Fix a bug with the map api
2021-08-07 13:57:53 +02:00
Eoghanmc22
6ed7581e03 fix a bug with map api 2021-08-06 22:22:25 -04:00
TheMode
a2e2461d22 Revert BinaryReader changes 2021-08-06 17:30:39 +02:00