Dylan K. Taylor
e0ed877494
Protocol changes for 1.2.10 release
...
Looks like they reverted near enough everything they did in the beta.
1.7dev-698
2018-02-08 11:19:04 +00:00
Dylan K. Taylor
bab2daf711
Protocol changes for 1.2.10 release
...
Looks like they reverted near enough everything they did in the beta.
2018-02-08 11:18:46 +00:00
Dylan K. Taylor
5858025d90
Updated PocketMine-NBT dependency to fix CompoundTag bugs
2018-02-07 19:49:52 +00:00
Dylan K. Taylor
dbac2abafb
TextFormat: make colour matching regex less absurd
2018-02-07 11:31:49 +00:00
Dylan K. Taylor
266d1cb935
Updated Composer dependencies
2018-02-07 10:22:31 +00:00
Dylan K. Taylor
ffbb44673f
Enchantment: fix mistake in Protection translation key
2018-02-07 10:15:31 +00:00
Dylan K. Taylor
a84a8ecc14
Fixed 32-bit accident
...
gud fuckup
2018-02-06 21:39:15 +00:00
Dylan K. Taylor
687886e70b
PermissibleBase: remove useless destructor
2018-02-06 21:10:42 +00:00
Dylan K. Taylor
bad323f5cc
PocketMine.php: move stuff out of do{}while(false) that doesn't need to be in there
2018-02-06 19:13:57 +00:00
Dylan K. Taylor
ca9f700fb0
PocketMine.php: refactor timezone handling into its own class
...
This removes lots of bloat from PocketMine.php, and this is also important for reusability across threads.
2018-02-06 19:09:24 +00:00
Dylan K. Taylor
c51cc6b2fe
Drop support for Zephir entirely
...
This extension hasn't been maintained in 4 years and it doesn't make sense to update it to PHP 7, since :shoghi: just dumped a blob of PHP into zephir. It's not worth the hassle of updating.
I prefer to modularise and then C-ify modules, so that they can be reused on their own.
2018-02-06 18:40:36 +00:00
Dylan K. Taylor
03c66f0f86
PocketMine.php: clean up dependencies checking
2018-02-06 18:38:09 +00:00
Dylan K. Taylor
610b041631
PocketMine.php: remove unused import
2018-02-06 18:25:59 +00:00
Dylan K. Taylor
75289b1498
kill(): fix bug when running with POSIX extension but without pcntl
...
SIGKILL constant is defined by pcntl, not by posix. If pcntl is not compiled then bugs can occur when trying to kill() the server (such as during a crash).
2018-02-06 17:55:18 +00:00
Dylan K. Taylor
4eea54780a
start.cmd: pause on exit with error code in CMD
...
Closing the command window immediately when an error occurs is particularly unhelpful. This keeps the command window open so that the user can see what went wrong.
[ci skip]
2018-02-06 17:49:12 +00:00
Dylan K. Taylor
e860d32b3a
Merge branch 'text-container-move'
2018-02-06 13:13:19 +00:00
Dylan K. Taylor
c4486d9ad7
Tile: Cleaned up utterly pointless overcomplicated code for inventories
2018-02-06 13:01:54 +00:00
Dylan K. Taylor
8222b16d9a
LevelDB: fixed leftover usage of the old CompoundTag API
2018-02-06 11:16:14 +00:00
Dylan K. Taylor
dcb53b1cbb
RCON: Use PTHREADS_INHERIT_NONE - these threads don't need baggage from upstairs
2018-02-05 17:27:00 +00:00
Dylan K. Taylor
a52a2f6d26
RCON: register autoloader on RCON threads
...
fixes #1993
Interesting that this bug was never noticed before. Maybe because of the class getting loaded by PocketMine.php previously.
2018-02-04 22:24:19 +00:00
Dylan K. Taylor
906d7eb176
Lang: Move TranslationContainer and TextContainer to \pocketmine\lang namespace
...
why the hell were they ever put in \pocketmine\event in the first place??
This change was suggested many months ago but I forgot all about it.
2018-02-04 20:03:30 +00:00
Dylan K. Taylor
bf3f5532ac
Server: duct tape for very early startup crashes
...
Exceptions occurring early in the start sequence (before BaseLang is initialized) will result in the server hanging and not killing process as expected. This works around that issue.
2018-02-04 19:53:11 +00:00
Dylan K. Taylor
07bf1c9e22
Bump API version for release
1.7dev-677
api/3.0.0-ALPHA11
2018-02-04 18:06:02 +00:00
Dylan K. Taylor
b659a3d39f
Server: more shutdown debug
2018-02-04 10:14:35 +00:00
Dylan K. Taylor
68b30108be
CrashDump: fix mis-reporting Composer dependency exceptions as plugin crashes
...
this is still not foolproof but whatever.
2018-02-03 19:27:59 +00:00
Dylan K. Taylor
f223fb2876
Use realpath() to determine correct file path case for DATA and PLUGIN_PATH
...
fixes issues where cleanPath() doesn't remove these paths from crash traces
2018-02-03 19:21:13 +00:00
Dylan K. Taylor
8bb785b7af
Update pthreads for Travis
2018-02-03 14:17:42 +00:00
Dylan K. Taylor
806a2005d7
added missing dependency check for OpenSSL
...
this is managed by Composer now so I didn't think to check it.
2018-02-03 01:03:59 +00:00
Dylan K. Taylor
c794ced0ad
fix dependencies order
2018-02-03 01:03:08 +00:00
Dylan K. Taylor
f993358c5f
fixed extremely stupid bug with player spawns
...
This was causing new players to inexplicably spawn in the wrong place when joining a world for the first time which had a different level name than folder name. With LevelDB worlds, this caused them to spawn wayyyy up at y=32767 for no good reason.
2018-02-02 16:00:28 +00:00
Dylan K. Taylor
1c12be6bf2
README: Remove IRC
...
these channels have been dead for years.
2018-02-02 09:31:13 +00:00
Dylan K. Taylor
a1d9b8486e
README: Be more clear about "getting latest phar"
...
We don't want people to be using latest development builds, but that's the first thing people see when visiting Jenkins. We want them using releases instead.
2018-02-02 09:28:22 +00:00
Dylan K. Taylor
9397356ce4
Server: fix crash when specifying settings.async-workers on the command-line
2018-02-01 17:58:49 +00:00
Dylan K. Taylor
e56e363dcc
DataPacket: rename split-screen bytes
2018-01-31 12:07:26 +00:00
Dylan K. Taylor
18b287c3ea
AsyncTask: Remove cleanObject() and calls to it
...
This is no longer needed. Doing worker GC (via collect()) frees the allocated memory anyway, so this function is now redundant.
2018-01-30 16:45:49 +00:00
Dylan K. Taylor
9014eb72e9
TeleportCommand: Fixed the bug fix again
...
This all comes from a shitty bugfix by @PEMapModder. Should be applied globally really, but it wasn't - and not properly tested either :P
2018-01-30 15:08:11 +00:00
Dylan K. Taylor
82948726ed
Beware threads/workers might not inherit \pocketmine\PATH
...
if the inherit flags don't include PTHREADS_INHERIT_CONSTANTS, this code would fail. Store the Composer autoloader path in advance instead.
2018-01-30 14:50:19 +00:00
Dylan K. Taylor
c601816586
Terminal::hasFormattingCodes() workaround for STDOUT not being defined
...
#1979
This isn't a full solution because formatting codes are still not applied correctly if the calling thread doesn't inherit classes.
2018-01-30 10:54:04 +00:00
Oreo Oreo
54f7a88fbb
Added getXuid()
2018-01-30 01:25:27 +03:00
Dylan K. Taylor
d2d1df0447
MainLogger: Remove redundant condition
...
these are always ThreadedLoggerAttachments anyway, this code doesn't make sense.
2018-01-29 12:24:00 +00:00
Dylan K. Taylor
f9b1afe4cf
Fixed race condition causing exception log messages to sometimes not get written to disk when kill() is used
...
Synchronize with the logger thread when logging an exception or killing. This forces the main thread to wait for disk write to complete when logging exceptions or killing the process.
2018-01-29 12:04:23 +00:00
Dylan K. Taylor
033cb8bd63
oops, wrong namespace
2018-01-28 13:08:11 +00:00
Dylan K. Taylor
0ed9fcb641
Restrict VerifyLoginTask exception handling to known exceptions
...
everything else should produce a nice big stack trace for debugging purposes, because everything else is probably bugs
This fixes random exception error messages getting relayed to the client when a user does stupid things like editing the source code without knowing what they are doing.
2018-01-28 13:07:09 +00:00
Dylan K. Taylor
efac23d4af
Updated to new RakLib version
2018-01-27 19:10:55 +00:00
Dylan K. Taylor
48dc1c38f7
Generator: fixed misuse of InvalidArgumentCountException
2018-01-27 12:46:09 +00:00
Dylan K. Taylor
ffb3e2b47a
Player: Fixed logical nonsense in removeWindow()
...
The only time this is set anyway is obviously if the ID is non-null.
2018-01-27 11:02:03 +00:00
Dylan K. Taylor
ef816c0a52
Player: Fixed window ID of closing inventory always being -1
...
reported by @Muqsit, thank you sir
2018-01-27 11:00:08 +00:00
Dylan K. Taylor
3e35bc38e2
Inventory: Fixed crash when breaking right half of a double chest while open
2018-01-27 10:57:04 +00:00
Dylan K. Taylor
de0741f727
Item: remove unused imports
2018-01-26 17:12:00 -05:00
Dylan K. Taylor
6fd4b9f1e2
Entity: Cater for old data with CustomNameVisible as a StringTag
...
This was a bug in older versions, fixed by 890f72dbf23a77f294169b79590770470041adc4. However since ALPHA10 this has been moved to the new, strict-ified CompoundTag API, which shits its pants when it encounters a tag of the wrong type.
Closes jojoe77777/Slapper#119
2018-01-26 20:01:04 +00:00