TheMode
ff9ca60a58
Add some inline packet constructors
2021-07-22 09:54:34 +02:00
TheMode
690c5b7614
Remove unused method
2021-07-22 00:21:25 +02:00
TheMode
a0bb437c4c
Reduce chunk entities Set allocation
2021-07-21 22:21:43 +02:00
TheMode
266ecd5b64
Fix warning
2021-07-21 20:06:12 +02:00
TheMode
fceafb0b1e
Load a single chunk on instance spawn
2021-07-21 09:45:13 +02:00
TheMode
bebdcf59d5
Do not allocate arrays when refreshing a player chunks, optimize array lookup
2021-07-21 08:42:49 +02:00
TheMode
94a96d7df1
Improve entity chunk switch
2021-07-21 08:25:44 +02:00
TheMode
953d84add7
Fix string operation when switching an entity chunk
2021-07-21 08:12:03 +02:00
TheMode
60e22e9df8
Merge branch 'master' into new-block-api
2021-07-21 05:48:45 +02:00
TheMode
efc135f48a
Handle empty list case, let the try-catch handle NPE
2021-07-20 23:48:13 +02:00
TheMode
bad206d504
Improve anvil block loading performance
2021-07-20 23:40:23 +02:00
TheMode
8f6f63b2c8
Merge pull request #373 from MrGazdag/patch-3
...
Modify /gamemode to behave more like vanilla
2021-07-20 22:29:52 +02:00
TheMode
cb21b0baf5
Merge branch 'master' into new-block-api
2021-07-20 22:18:43 +02:00
TheMode
40ae462d89
Fix NPE
2021-07-20 22:18:24 +02:00
TheMode
6079f87b38
Merge branch 'master' into new-block-api
2021-07-20 22:16:00 +02:00
TheMode
7944977cd5
Merge pull request #374 from Project-Cepi/vanillaStackingRuleEquals
...
Add #equals method to VanillaStackingRule
2021-07-20 20:09:15 +02:00
LeoDog896
8a7d13c8ad
Make the constant static?
2021-07-20 14:07:16 -04:00
LeoDog896
8e849ad947
Add constant in ItemStack for VanillaStackingRule
2021-07-20 14:03:55 -04:00
LeoDog896
7d55d6db87
Add #equals method
2021-07-20 13:58:40 -04:00
TheMode
a074117ea5
Simplify optionalLoadAll
2021-07-20 19:10:53 +02:00
MrGazdag
4348ce50cf
further polish
2021-07-20 17:01:30 +02:00
MrGazdag
471838a77f
capitalize a single N
...
i missed that lmao
2021-07-20 13:52:04 +02:00
MrGazdag
037dfc2003
Format and comment code
...
makes the code look nicer
2021-07-20 13:46:57 +02:00
TheMode
1dc80d6b87
Simplify movement processing
2021-07-20 07:05:08 +02:00
TheMode
bca3324b56
Limit chunk map lookup while moving
2021-07-20 06:17:13 +02:00
MrGazdag
ed97de417e
remove pattern matching
2021-07-20 04:15:43 +02:00
MrGazdag
ecdd0181e0
Modify /gamemode to function more like vanilla
...
Modifies the /gamemode command in the demo, to function like the vanilla /gamemode command, with the syntax `/gamemode <gamemode> [target]`. It also utilizes translation components for players, and allows the console to run the command as well as players.
2021-07-20 03:56:48 +02:00
TheMode
12e430db69
Inline position packets
2021-07-20 03:06:27 +02:00
TheMode
1ff4b7cb74
Do not call the move event when moving at the same position
2021-07-20 02:33:02 +02:00
TheMode
4d2b925edd
Improve block#withProperty/ies performance
2021-07-19 23:59:40 +02:00
TheMode
14e42f7907
Micro optimize block placement
2021-07-19 23:41:28 +02:00
TheMode
111d5b9b66
Reduce ItemMeta allocation
2021-07-19 04:34:42 +02:00
TheMode
a61ff53189
Remove deprecated ItemTag
2021-07-19 04:27:44 +02:00
TheMode
d4398bda5b
Merge branch 'master' into new-block-api
2021-07-18 17:20:22 +02:00
TheMode
4e93e52333
New command fix attempt
2021-07-18 17:19:48 +02:00
TheMode
cc1719c3c1
Remove unused method
2021-07-18 16:36:09 +02:00
TheMode
22ac1c4998
Merge branch 'master' into new-block-api
...
# Conflicts:
# src/main/java/net/minestom/server/utils/ArrayUtils.java
2021-07-18 16:20:08 +02:00
TheMode
a07177fbf0
Prevent IOB
2021-07-18 02:13:20 +02:00
TheMode
97104df793
Potentially fix command node creation
2021-07-18 01:09:59 +02:00
TheMode
93fa65f90b
Temporary command node fix
2021-07-17 23:21:31 +02:00
TheMode
2ee1470470
Cleanup ArrayUtils
2021-07-17 21:38:32 +02:00
TheMode
ac3cbce278
Fix BlockHandler#onInteract return, simplify block placement code
2021-07-17 21:28:00 +02:00
TheMode
f4d280a240
Merge pull request #372 from MrGazdag/patch-1
...
Fix ArrayUtils#sameStart
2021-07-17 21:21:43 +02:00
MrGazdag
0724b8639b
Fix ArrayUtils#sameStart
...
Fixes #370 , which was a weird occurrence of this bug lmao
2021-07-17 21:20:10 +02:00
TheMode
518aab3a44
Add Block#values
2021-07-16 19:39:56 +02:00
TheMode
b07e912063
Fix build
2021-07-15 22:14:57 +02:00
TheMode
55fa083adf
Remove longly deprecated player initialization callback
2021-07-15 22:12:11 +02:00
TheMode
ba6e83b6d1
Fix build
2021-07-15 22:01:46 +02:00
TheMode
1c7cd269ab
Remove DataContainer from more classes
2021-07-15 21:58:29 +02:00
TheMode
91a01a23b6
Use for-each instead of lambda
2021-07-15 20:09:13 +02:00