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
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
Dylan K. Taylor
6c8a1a5b80
Item: Remove redundant Level parameter from onActivate()
...
there are three other sources this could be gotten from, an arbitrary level doesn't make sense.
2018-01-25 10:15:36 +00:00
Dylan K. Taylor
3842ee15cf
Item: Removed now-obsolete Cake class
...
>> As of 1.2, cake has a max stack size of 64, making this class redundant as its only purpose was to declare a stack size of 1.
2018-01-25 10:09:09 +00:00
Muqsit
6c71b443e8
Fixed armor not dropping ( #1962 )
2018-01-24 20:01:32 +00:00
Dylan K. Taylor
4a4900e5e7
Revert bad duct-tape fix that broke lots of other things
...
Revert "Fixed players getting full health on rejoin after quitting on death"
This reverts commit 1d4bafb6ff3e768dc8fed0de414779ddc5e4ddb0.
2018-01-24 19:21:32 +00:00
Dylan K. Taylor
26d4169fea
EntityShootBowEvent: Remove unnecessary kill()
2018-01-24 19:17:08 +00:00
Dylan K. Taylor
7d88a8b315
Player: Remove useless assignments from constructor
2018-01-24 18:22:23 +00:00
Dylan K. Taylor
41592a04b7
InventoryTransactionPacket: Update some field names
2018-01-24 13:50:30 +00:00
Dylan K. Taylor
1d4bafb6ff
Fixed players getting full health on rejoin after quitting on death
...
This makes #1567 less exploitable. Now, players who attempt to exploit this bug will get stuck - they won't be able to move or do anything. Not ideal, because they won't be able to respawn either - but it's better than nothing.
2018-01-24 12:27:10 +00:00
Dylan K. Taylor
28996f561f
Player: Added a hack for knockback being messed up
...
This needs to be updated server side and isn't because of the way player movement is currently handled. Fixing this properly will require a lot more work than this.
2018-01-24 11:56:32 +00:00
Dylan K. Taylor
0658c0851b
Entity: Remove some unused properties
2018-01-24 11:37:01 +00:00
Dylan K. Taylor
0df2064802
Implement armor damage protection enchantments ( #1839 )
2018-01-24 10:13:24 +00:00
Dylan K. Taylor
6543d96910
Inventory: Split up armor and player inventory ( #1957 )
...
* Inventory: Split up PlayerInventory and armour handling
* Fixed other players don't see armour changes. This bug also exists on master.
2018-01-23 20:01:26 +00:00
Dylan K. Taylor
0bf5ab76fb
Remove WeakRef leftovers
2018-01-23 19:04:37 +00:00
Dylan K. Taylor
8e1394bf53
MemoryManager: Use get_declared_classes() to build lists of static properties
...
This makes memory dumping independent from the autoloader implementation, and fixes #1958 .
2018-01-23 18:23:53 +00:00
Dylan K. Taylor
6ddbdc9dc1
Fixed worker memory dump crash
...
$GLOBALS does not exist at all on threads :(
2018-01-23 17:21:24 +00:00
Dylan K. Taylor
2a8be527d7
Remove redundant paths from BaseClassLoader
...
Everything under src is now handled by the Composer autoloader, and SPL doesn't exist anymore (it's a Composer library now).
2018-01-23 17:03:04 +00:00
Dylan K. Taylor
aca1422fca
Updated pthreads version for Travis
2018-01-23 16:49:32 +00:00
Dylan K. Taylor
b0d0932ed9
DoubleChestInventory: Fixed items getting rearranged in single chests when creating a double chest
...
I fixed this elsewhere more than 18 months ago, why is this still here?
2018-01-23 15:50:13 +00:00
Dylan K. Taylor
fd5557861b
Changed how login verification is handled, add more useful error messages
...
closes #1955
2018-01-28 14:13:59 +00:00
Dylan K. Taylor
1de7c5b114
Inventory: Added includeEmpty parameter to getContents()
2018-01-22 22:33:57 +00:00
Dylan K. Taylor
2fb580db26
Inventory: Removed need for Inventory to have an InventoryHolder
...
Inventory holders are now freed from BaseInventory. They are now declared by subclasses by convention, but are not required in most cases.
Ideally, this would be followed by the removal of the need for inventories to know their holders at all. They should just be simple containers of items.
This fixes #1560 by removing FakeBlockMenu.
2018-01-22 19:44:52 +00:00
Dylan K. Taylor
e5ca22a9a6
Player: Simplified implementation of windows => window ID map
...
it is not necessary to reference the actual objects here. Doing so makes the implementation more confusing. Hashes are sufficient.
2018-01-22 18:58:19 +00:00
Dylan K. Taylor
69ddaacc28
Inventory: Add a $send parameter to clearAll()
2018-01-22 18:39:39 +00:00