Dylan K. Taylor
6ccb494f8d
added API to get player language code
...
sadly this isn't particularly useful without something like the intl
extension to translate the language codes to ISO-632-1 codes like the
ones PocketMine-MP uses. However, this will do for now.
2017-11-04 15:50:00 +00:00
Matt
2ec7763bd6
Cosmetically improve UUID::equals() ( #1517 )
2017-11-04 10:45:05 +00:00
Dylan K. Taylor
6ebe3bfbea
use Player->sendDataPacket() with immediate parameter
2017-11-03 19:00:08 +00:00
Dylan K. Taylor
4533df17cf
make username validation on login less stupid
...
why are we checking if the username is valid AFTER we already tried to set it? it might not even be a string
2017-11-03 18:49:28 +00:00
Dylan K. Taylor
8ae663425f
try...catch attempt to decode connection request in incompatible logins
...
to allow protocol version hacking without it being so damn inconvenient
2017-11-03 18:46:40 +00:00
Dylan K. Taylor
e95b1d4b00
look for item IDs in ItemIds instead of Item
...
Item is likely to be more polluted by other constants which aren't item IDs.
2017-11-03 12:42:51 +00:00
Dylan K. Taylor
8ad02c9a4e
Remove redundant condition from ItemFactory
...
it's unrealistic to have a numeric constant name, so this condition is pointless.
2017-11-03 12:41:24 +00:00
Dylan K. Taylor
754e088ee8
Change visibility of Block->boundingBox
2017-11-03 12:19:51 +00:00
Dylan K. Taylor
451f5d0cd7
Fixed block-pick on crops giving the crop block itself
2017-11-03 12:17:38 +00:00
Dylan K. Taylor
42ed03fd02
Merge branch 'left-click-spawn-prot'
2017-11-03 11:59:26 +00:00
Dylan K. Taylor
3614711a02
fixed negative effect durations when level tick rate is > 1
...
thank you @Sandertv
2017-11-01 09:09:17 +00:00
Dylan K. Taylor
b7cd8dbfa9
Fixed CraftingManager->cloneItemMap() being utterly useless
2017-10-31 19:01:03 +00:00
Dylan K. Taylor
1486b5aa71
make more properties in CraftingManager protected
2017-10-31 18:49:49 +00:00
Dylan K. Taylor
f8e6438efe
updated some NBT for tiles
2017-10-31 18:22:06 +00:00
Dylan K. Taylor
caf9eaa2da
rename field in EntityPickRequestPacket
2017-10-31 12:25:20 +00:00
Dylan K. Taylor
6db5596b00
Added Jukebox window type ID
2017-10-30 18:37:42 +00:00
Dylan K. Taylor
a770e681dc
Implemented Config->removeNested() ( #1499 )
2017-10-30 16:32:48 +00:00
Dylan K. Taylor
a342a61037
nuke nestedCache when config is modified
2017-10-30 16:27:47 +00:00
Dylan K. Taylor
91c256f1a9
Added Level->getTileAt()
2017-10-30 13:36:42 +00:00
Dylan K. Taylor
93443992be
Fixed chests not getting updated properly on pair/unpair, close #1514
...
it wasn't clearing spawn compound caches or chunk caches
2017-10-30 11:50:02 +00:00
Dylan K. Taylor
ea09cc06c7
added UUID constants for MultiRecipe
2017-10-30 11:18:56 +00:00
Dylan K. Taylor
67af4d3b65
Cleaned up PMAnvil implementation
2017-10-29 19:13:58 +00:00
Dylan K. Taylor
4a78bfaa18
stop messing with my doc comments PhpStorm
2017-10-29 18:02:33 +00:00
Dylan K. Taylor
bb6b100443
extended CompoundTag API to allow force-writes and returning defaults on bad tag types
2017-10-29 18:01:33 +00:00
Dylan K. Taylor
8aca373194
added some docs to shut PhpStorm up
2017-10-29 13:02:19 +00:00
Dylan K. Taylor
7e490ccdf2
broadcast player skin to all online players by default
...
otherwise we could end up with undesirable bugs like players having the wrong skin when travelling from another part of the world... the skin has to be sent to everyone to update the player list
2017-10-29 12:19:47 +00:00
Dylan K. Taylor
991d321928
improved geometry debloating, also apply on skin changes
2017-10-29 12:14:16 +00:00
Dylan K. Taylor
600d80331a
Accept null for targets in Human->sendSkin()
...
For humans, it'll send to all viewers. For players, it'll send to all viewers, and the player itself.
2017-10-29 11:18:34 +00:00
Dylan K. Taylor
f79e4237df
Cache a compressed CraftingDataPacket to reduce workload on player join
...
this saves only a couple of ms per player join, but still worth it.
2017-10-29 09:57:55 +00:00
Dylan K. Taylor
6ce9e79cd5
fix some minor documentation issues in Binary
2017-10-28 18:40:05 +01:00
Dylan K. Taylor
e88aa385a3
make use of new pack() codes for longs
2017-10-28 14:04:41 +01:00
Dylan K. Taylor
5303a710ac
Updated RakLib submodule
2017-10-28 10:26:34 +01:00
Dylan K. Taylor
6ff1088a57
fix chest AABB
2017-10-27 19:16:06 +01:00
Dylan K. Taylor
d1db27016e
s/facePos/clickVector/
...
clickVector better describes this
2017-10-27 19:05:26 +01:00
Dylan K. Taylor
c55bc2d7e9
added use-item click vector to PlayerInteractEvent
...
now go and make some touchscreens with maps!
2017-10-27 19:00:17 +01:00
Dylan K. Taylor
747477dfcf
Changed potentially misleading parameter name in CompoundTag->getTagValue()
2017-10-27 11:04:03 +01:00
Dylan K. Taylor
48fefae920
Added cache for tile spawn compounds
...
avoids expensive repetetive NBT writes on chunk sends when the tile hasn't been changed
2017-10-27 10:23:48 +01:00
Dylan K. Taylor
52d0ad8a61
be yet more tolerant for on-ground checks on players
2017-10-26 23:23:11 +01:00
Dylan K. Taylor
bddd7e0eee
Fixed no fall damage when falling 3-4 blocks, close #891
2017-10-26 23:23:08 +01:00
Dylan K. Taylor
daf457213d
Updated RakLib submodule
2017-10-26 16:35:33 +01:00
Dylan K. Taylor
bd2cb85861
changed type of EntityLink unknown field and added a constructor
2017-10-25 18:50:07 +01:00
Dylan K. Taylor
1d651046c9
Compute time in milliseconds once and use it for both firstPlayed and lastPlayed
...
fixes issues where lastPlayed can be a tiny fraction of time into the future of firstPlayed when players join for the first time
2017-10-25 17:12:17 +01:00
Dylan K. Taylor
1dea25d123
Fixed wrong translation key used for level generation errors
2017-10-25 16:42:49 +01:00
Dylan K. Taylor
b6264d188e
Change Server->getConfigBoolean() to getConfigBool()
...
to be consistent, deprecated the original
2017-10-25 16:30:39 +01:00
Dylan K. Taylor
2635c85873
beware users putting garbage in pocketmine.yml
2017-10-25 12:54:53 +01:00
Dylan K. Taylor
3b85e558ce
Fixed bad documentation on Level->checkSpawnProtection()
2017-10-24 18:56:38 +01:00
Dylan K. Taylor
d48880e31b
Remove redundant assert
2017-10-24 17:40:22 +01:00
Dylan K. Taylor
a82efc44aa
wtf
2017-10-24 13:29:28 +01:00
Dylan K. Taylor
6daa0135d5
Cancel PlayerInteractEvent automatically on left-click block when spawn protection is triggered
2017-10-24 13:11:19 +01:00
Dylan K. Taylor
716c1f29b4
Fixed slabs again
2017-10-24 10:23:07 +01:00