10060 Commits

Author SHA1 Message Date
Dylan K. Taylor
82e4ef6d48 backport d8c81c0a1: UUID: remove useless default values
these are overwritten by the constructor, so they have no use here.
2019-06-16 14:43:28 +01:00
Dylan K. Taylor
4635b93f4d backport 23071d257 + deprecations: Extract process-related functions from Utils into a separate Process class 2019-06-16 14:40:51 +01:00
Dylan K. Taylor
a8433697ad backport aaaddd1fd: Terminal: stick a RESET on the end when writing a newline 2019-06-16 14:25:16 +01:00
Dylan K. Taylor
d0d300a6f8 backport 342b48b75: VersionString: Use the correct bitwise operators 2019-06-16 14:21:02 +01:00
Dylan K. Taylor
680cdb8e3e backport f5dbbea5f: Utils: added recursiveUnlink() 2019-06-16 14:20:05 +01:00
Jack M. Taylor
eaa78fe849 backport 205e13d88: Config: add getPath() (#2758)
Config->getPath() returns the path of the config i.e. the place where the config file is located.
2019-06-16 14:18:50 +01:00
Dylan K. Taylor
eedea4998b Terminal: Added write() and writeLine() to allow easily emitting Minecraft-formatted text to the console 2019-06-16 14:16:14 +01:00
Dylan K. Taylor
4e5a80c481 Recipe: deprecate interface 2019-06-16 14:12:49 +01:00
Dylan K. Taylor
4d54dc30c1 crafting: deprecate some stuff that's been removed on bleeding edge 2019-06-16 14:11:08 +01:00
Dylan K. Taylor
ac5339414a Merge branch 'stable' into next-minor
# Conflicts:
#	build/preprocessor
2019-06-16 14:08:06 +01:00
Dylan K. Taylor
6161155660 CraftingManager: micro optimization: reuse closure for item deserialize & reduce indirection 2019-06-16 14:05:37 +01:00
Dylan K. Taylor
2a5561fcd1 added more MultiRecipe UUIDs 2019-06-15 19:51:59 +01:00
Dylan K. Taylor
4e734989bc fixing add/remove items from anvil & enchanting table
the functionality of these don't work yet, but the inventories work more correctly now.
2019-06-15 18:56:42 +01:00
Dylan K. Taylor
93b83b4189 Player: Window system now only allows 1 window at a time 2019-06-15 18:19:09 +01:00
Dylan K. Taylor
312a755a27 Player: rename $windows to $inventoryNetworkIdMap 2019-06-15 15:51:43 +01:00
Dylan K. Taylor
a94541c531 Split CreativeInventoryAction into two new action types 2019-06-15 14:40:15 +01:00
Dylan K. Taylor
4bbf1d56dc NetworkInventoryAction: shorten exception message
This is logged with the network session's logger, which provides context information already.
2019-06-15 14:27:11 +01:00
Dylan K. Taylor
50a7fc0ba3 Rework inventory window open/close handling
- This fixes InventoryOpenEvent and InventoryCloseEvent being fired for persistent windows. Close #2950
- The ability to specify a custom network ID to assign the inventory to in addWindow() has been removed.
- The ability to assign a non-removable window in addWindow() has been removed.
- The ability to remove non-removable windows in removeWindow() and removeAllWindows() has been removed. This was previously needed for internal purposes.
2019-06-15 14:23:02 +01:00
Dylan K. Taylor
c77e75fa93 FastChunkSerializer: fix typo 2019-06-14 19:42:50 +01:00
Dylan K. Taylor
468340d55b this was stupid 2019-06-14 19:41:19 +01:00
Dylan K. Taylor
8356285b66 Consistently call InventoryCloseEvent
this wasn't being fired when a plugin did the removal.
2019-06-14 19:39:35 +01:00
Dylan K. Taylor
f671f2ebfa Inventory: drop useless proxy functions 2019-06-14 19:37:45 +01:00
Dylan K. Taylor
787d305c2a Player: call InventoryOpenEvent consistently 2019-06-14 19:32:38 +01:00
Dylan K. Taylor
2cb6fda286 Moved network chunk serializing code to network\mcpe namespace 2019-06-14 18:25:06 +01:00
Dylan K. Taylor
08de657c8d Extract FastChunkSerializer unit from Chunk
this functionality doesn't directly pertain to Chunk functionality.
2019-06-14 18:19:46 +01:00
Dylan K. Taylor
92035ac2ec Chunk: drop premature optimizations 2019-06-14 18:07:13 +01:00
Dylan K. Taylor
722da5e88d Simplify hasChanged handling for chunk init
we always want chunks to be saved if they have tiles or entities
2019-06-14 18:00:37 +01:00
Dylan K. Taylor
c8eefddfc0 Chunk: fix tiles not being loaded from NBT in some cases 2019-06-14 17:59:00 +01:00
Dylan K. Taylor
211836274f World: remove redundant checks
when entities are added and removed which are savable, the dirty flag is set anyway, so these checks aren't needed.
2019-06-14 17:47:39 +01:00
Dylan K. Taylor
5d531b56db travis.sh: lock down PHPUnit at 7.5.11
7.5.12 makes changes which assume libxml is present, which isn't the case with our PHP builds.
2019-06-14 16:58:56 +01:00
Dylan K. Taylor
9e9de1e8ba Log a debug message when receiving a mismatch transaction 2019-06-13 19:52:53 +01:00
Dylan K. Taylor
da4c646d27 Simplify InventoryAction implementation
none of these action types are able to fail now.
2019-06-13 18:35:05 +01:00
Dylan K. Taylor
44be2179c4 SlotChangeAction: fix feedback loop 2019-06-13 18:31:25 +01:00
Dylan K. Taylor
8551d1e282 Remove Inventory->sendSlot() and Inventory->sendContents()
the plan is to remove this from inventory entirely and use listeners for this.
2019-06-13 18:14:11 +01:00
Dylan K. Taylor
7ba1dd3242 BaseInventory: remove setSize()
no inventory is designed to deal with this. Changing this can break transactions, specialized logic like double chest / furnace and more.
2019-06-13 17:24:17 +01:00
Dylan K. Taylor
f128fc1849 Merge branch 'stable' 2019-06-13 16:07:00 +01:00
Dylan K. Taylor
3568c7b1c7 Merge branch 'stable' of https://github.com/pmmp/PocketMine-MP into stable 2019-06-13 16:05:18 +01:00
Dylan K. Taylor
862c844759 Write PID into lock file 2019-06-13 15:11:59 +01:00
Dylan K. Taylor
6bd67730eb AsyncWorker: use a shorter name on logs 2019-06-13 14:00:26 +01:00
Dylan K. Taylor
e95d81e04b Server: fix possible comparison bug in load orders 2019-06-12 19:50:27 +01:00
Dylan K. Taylor
31f0576725 Server: remove useless constructor assignment 2019-06-12 19:47:51 +01:00
Dylan K. Taylor
8afea36919 Clean up some internal commands protocol handling 2019-06-12 19:35:14 +01:00
Dylan K. Taylor
4364d2a942 AvailableCommandsPacket: Clean up internals
this is still disgusting, but it's a little more bearable now.
2019-06-12 16:54:30 +01:00
Dylan K. Taylor
42954c1d72 Server: document the crazy behaviour of some innocent looking functions 2019-06-12 10:14:29 +01:00
Dylan K. Taylor
9765d78a5d Merge branch 'stable' 2019-06-11 19:19:32 +01:00
Dylan K. Taylor
4c5f6eb1b7 Moved preprocessor submodule to build/ directory 2019-06-11 17:56:13 +01:00
Dylan K. Taylor
02bc43b440 missed a bit 2019-06-11 16:48:24 +01:00
Dylan K. Taylor
5832f42783 added changelogs as mdfiles 2019-06-11 16:44:05 +01:00
Dylan K. Taylor
858f440bcf TimingsHandler: return the result of $closure() for easier usage
this isn't type safe, but it doesn't matter a whole lot, and there's nothing we can do about it without generics.
2019-06-11 15:04:30 +01:00
Dylan K. Taylor
de6053de11 TimingsHandler: use a try/finally block in time() 2019-06-11 14:54:54 +01:00