a6237958e8
Level: fix another crashy edge case in chunk ticking
...
this also removes a bias towards the chunk that the player is on, because this makes such chunks tick faster than adjacent chunks.
2019-01-27 20:41:47 +00:00
9ec40c421f
Split up Effects into a bunch of classes
...
Server-side levitation now works too.
2019-01-27 19:45:15 +00:00
729ae8bab7
Level: fixed adjacent chunk loading check
2019-01-27 16:20:38 +00:00
ac551cf248
Entity: add addMotion() to allow updating motion vector
...
this allows updating motion without needing to create new objects for the task.
2019-01-27 15:43:57 +00:00
bccc07633c
Entity: Allow disabling gravity for a mob
2019-01-27 15:42:46 +00:00
6f9c4eb8e8
Merge branch '3.5'
2019-01-27 15:08:26 +00:00
96857c65b6
Player: Fixed subscribing to broadcast permissions too early
...
Plugins would indirectly trigger permissible recalculation too early in the login sequence, which then caused their permissions to be recalculated and subscribing them to the broadcast permission far too early.
2019-01-27 15:08:08 +00:00
0b1bdec3ac
GameMode::fromString() now throws InvalidArgumentException
2019-01-26 17:09:54 +00:00
9826abd83e
Stair: fixed crash if player is null
2019-01-26 16:59:03 +00:00
48c8c2a8c3
ItemFrame: address crashdump 2113950
...
thanks Mojang for designing this lovely system where so much undefined behaviour is able to take place :(
2019-01-26 16:58:25 +00:00
d378371cc8
Transition to spl_object_id()
2019-01-26 15:06:38 +00:00
1e708db26c
Server: fixed wrong doc type on broadcastMessage()
2019-01-26 15:03:15 +00:00
d052b1a45f
Server: reduce code duplication in broadcast handling
2019-01-26 15:02:07 +00:00
eac8f639a7
Level: Simplify internal chunk ticking handling
2019-01-26 13:48:43 +00:00
519f6e2668
Merge branch '3.5'
2019-01-26 12:08:21 +00:00
c83b7d9b69
Utils: fixed getNiceClosureName() not processing namespaced closures properly
2019-01-26 12:08:07 +00:00
939f3efa3b
Merge branch '3.5'
2019-01-25 19:44:08 +00:00
c66dc7b273
Level: Optimize blockticking coordinate selection
...
generating 1 large bounded random costs the same as generating 4 small ones, so it makes more sense to do it like this instead.
Note that prior to 7.1 this code would not work due to it not handling 64-bit appropriately.
2019-01-25 19:43:16 +00:00
6ee484e401
ChunkLoader: remove getLoaderId() (take 2)
2019-01-25 18:58:01 +00:00
bb27c76d13
Merge branch '3.5'
2019-01-25 17:12:00 +00:00
5bf7350ee5
Level: change some stupid var names
2019-01-25 17:10:44 +00:00
8a0f5cd7c9
Merge branch '3.5'
2019-01-25 13:19:40 +00:00
636cc1c199
Level: some mitigations for #2675
...
this reduces the performance impact by using smaller keys, which reduces the key distance for nearby blocks.
2019-01-25 13:17:33 +00:00
62b6405371
Use 2 space indents in YAML files
...
this is (mostly) a backport of #2593 to 3.5. Closes #2593 .
2019-01-24 18:44:06 +00:00
469b24b0a5
Remove built-in spawn protection
...
Users should use the new BasicSpawnProtection plugin instead.
2019-01-24 16:56:15 +00:00
738e310798
Strip out RCON, closes #2686
...
Users should move to the new RconServer plugin instead.
2019-01-23 20:39:16 +00:00
61e04d5284
Merge branch '3.5'
2019-01-23 16:48:12 +00:00
187f36fe38
ExperienceOrb: clean up some confusing code
2019-01-23 16:46:18 +00:00
dc89b48354
Human: Fixed XP drop amount to match vanilla
...
In vanilla it doesn't drop the exact number of points you collected. Rather, you lose a little for every level above 1 you had (1 level requires 7 points, later levels require +2 per level), and can recover at most 100 points. Hence, if you had 10 levels, you get back enough points to fill 5 levels and most of a 6th. 14-15 levels gets you the upper bound of about 7.5 levels.
2019-01-23 12:39:25 +00:00
e6d1c1dfbc
Living: Get rid of delayed XP spawning, closes #2644
...
This is not identical to vanilla, but I don't care because it gets rid of edge cases and also makes it easier to integrate with EntityDeathEvent in the future.
2019-01-23 12:31:05 +00:00
6277787e0a
Convert Particle to interface
2019-01-23 12:18:24 +00:00
d2284d5c47
Move Particle IDs to protocol namespace
2019-01-23 12:16:01 +00:00
23a18a8eb6
Convert Sound into interface
2019-01-23 12:10:24 +00:00
2356991022
Merge branch '3.5'
2019-01-22 22:27:07 +00:00
5a8812b1dc
3.5.8 is next
2019-01-22 22:14:19 +00:00
4b8e4123af
Release 3.5.7
2019-01-22 22:13:35 +00:00
45a4252c26
RCON: Explicitly specify connection backlog size, fixes #2685
...
I believe this is caused by a bug in the linux kernel, since it only impacts certain machines I tested (one, to be specific). Whatever the case, setting a max backlog size is prudent anyway, and fixes the problem.
2019-01-22 22:11:32 +00:00
feaaa925a7
Fixed a series of denial-of-service bugs in RCON
...
Packets with a too-short payload would either cause the RCON thread to hang until the client disconnected, or crash the RCON thread entirely.
commit 90bb1894d7f87645b806f5fc67d1b877bb963180
Author: Dylan K. Taylor <odigiman@gmail.com >
Date: Tue Jan 22 18:15:46 2019 +0000
fix some bugs in RCON
2019-01-22 22:05:15 +00:00
17fee801e6
RCON: remove unnecessary function
2019-01-22 13:43:55 +00:00
1ebc101ded
fixed crash on dev build self-shutdown
2019-01-22 13:38:50 +00:00
48a99937b9
more exception handling cleanup
2019-01-22 13:37:46 +00:00
4ae6428641
Level: rename getCollisionCubes() -> getCollisionBoxes()
...
these aren't cubes! shoghi, please read the dictionary.
2019-01-20 18:11:20 +00:00
425ad6101f
Block: rename onEntityCollide() -> onEntityInside()
...
this better describes what the hook is for.
2019-01-20 18:09:47 +00:00
ae7d6cc4a2
Merge branch '3.5'
2019-01-20 15:53:47 +00:00
47321114eb
login: allow 60 seconds clock drift on login JWT
...
can everyone please just use NTP already?
2019-01-20 15:51:29 +00:00
a27c9409f1
ExperienceOrb: fixed wrong condition
2019-01-20 12:30:24 +00:00
854f851525
ExperienceOrb: don't follow players in other worlds
2019-01-20 12:30:09 +00:00
467caf347d
NetworkSession: Consistently don't use 0x prefix
2019-01-20 11:06:47 +00:00
5d8568b1a4
Add NetworkSession->getDisplayName(), clean up ip/port ad-hoc usages
2019-01-20 11:05:12 +00:00
842eb0200e
Merge branch '3.5'
2019-01-19 19:14:39 +00:00