Commit Graph

94 Commits

Author SHA1 Message Date
Alex "mcmonkey" Goodwin
221eb4b8d5 Fix for client NPE issue - don't missend player spawn packets (#1525)
* Fix #1360 - don't missend player spawn packets

Player spawn packets were improperly sent by the Minecraft internals in early NPC spawn sequence, when they are not valid to be sent yet. This patch blocks their sending until the tracker system is pushed onto the NPC. Tested and functional.

* improve long name cutting order, fixes #1422

ensures that root name will always be 16 characters if the given name was too long - previously, the root name could be as small as a single character (for input name of 17 characters).
2018-06-28 23:51:41 +08:00
Alex "mcmonkey" Goodwin
42fda25ceb Patch skin command, rename command (#1524)
* Fix npc skin -t argument order

Command input is doc'd as (and should function as) data then signature, but the called method was signature then data... update calls it in correct order. Also, fixes doc to indicate that a name is valid input, not just uuid (not entirely sure how that is handled when sent out in a packet, but it seems to be correct to feed a name)

* Ensure rename command will handle scoreboard changes

Always update prefix/suffix, not just only when team is newly created
Guarantee removal entity from scoreboard team on remove
Also removes a fileheader screwup (first line changed in 1_12_R1 file)
Also removes non-used code bits (the two coloredName lines - they don't actually functionally do anything)
Also removes a duplicated data get call

* patch gamemode command

Uppercase + unique permission node

* patch for names of length 30
2018-06-27 12:00:03 +08:00
Julian v.d Berkmortel
5d04746a99 ( Patch for #1498 ) protect villager npcs from lightning (#1504) 2018-06-07 17:08:39 +08:00
fullwall
772ab5fb7b Add NMS.setPeekShulker to replace old method 2018-04-09 00:17:17 +08:00
fullwall
4c99dc0e7c Initial 1.8.8 support 2018-04-07 16:02:35 +08:00
fullwall
9a5c6a2170 Fix #1452 2018-03-24 15:33:41 +08:00
fullwall
e20e45169a Prevent magma cubes from damaging players 2018-03-15 17:21:51 +08:00
fullwall
5f062dbb3a Fix horse/llama equipping 2018-03-15 16:41:30 +08:00
fullwall
73ff01c774 Add color to /npc shulker 2018-03-09 23:30:28 +08:00
fullwall
407430daa5 Stop default AI for players mounted on pigs 2018-03-09 19:44:10 +08:00
fullwall
bf13181bd1 Add a NPE check to getVehicle 2018-03-02 00:39:05 +08:00
fullwall
d14119bc38 Override an ocelot method 2018-02-18 18:56:19 +08:00
fullwall
9ad7c976bf Fix wolf targeting with Citizens installed 2018-02-05 15:51:20 +08:00
fullwall
476debfcd7 Make horse equipper more general 2018-02-03 08:56:09 +08:00
fullwall
c767b6fdc3 Support non-yggdrasil implementations of MinecraftSessionService 2018-01-29 16:26:26 +08:00
fullwall
f33804609e Add -l flag to /npc spawn and add /npc metadata
Add /npc remove --owner
2018-01-01 14:41:10 +08:00
fullwall
ffbedcd841 Implement a rudimentary setSkinPersistent API 2017-10-19 00:27:27 +08:00
fullwall
15569c529f Add /npc shulker 2017-09-04 19:16:49 +08:00
fullwall
0e25c352a0 Try to aggressively stub out AdvancementDataPlayer 2017-08-24 19:50:04 +08:00
fullwall
aa3654c3fa Use minecraft logic for minecarts 2017-07-10 01:00:35 +08:00
fullwall
c02fec9ca0 Set noclip for spectator NPCs 2017-06-09 20:27:44 +08:00
fullwall
4235e72cc1 Remove subscription to bukkit broadcast 2017-06-08 19:37:57 +08:00
fullwall
59f67c02b9 Add /npc llama 2016-12-27 00:38:59 +08:00
fullwall
f7a4e78a8c Don't update controller look during navigation 2016-12-24 21:22:11 +08:00
fullwall
cf5beab4c5 Add immediate parameter to Util.faceLocation and fix a bug in it 2016-12-16 17:03:11 +08:00
fullwall
afb7e13ee6 Fix some issues with controllable 2016-12-11 17:12:29 +08:00
fullwall
86d6794b43 Fix Minecraft 1.10 player looking 2016-12-10 20:20:27 +08:00
fullwall
9329c66667 Fix bad getBukkitEntity if condition 2016-12-04 02:00:36 +08:00
fullwall
f2879fbfcc Fix players always looking south 2016-11-30 14:17:01 +08:00
fullwall
bc9374d30c Remove villager force head yaw setting 2016-11-26 23:42:23 +08:00
fullwall
d968384d58 Clamp controller look yaw for entityinsentients as well 2016-11-26 23:25:59 +08:00
fullwall
974cb61a43 Clamp yaw and update some yaw-related variables 2016-11-26 23:07:25 +08:00
fullwall
deffc24bb7 Fix NPE, add MountTrait, fix 1.10 looking 2016-11-26 11:28:29 +08:00
fullwall
b695afdcd5 Fix mob NPC not using pitch 2016-11-22 16:04:48 +08:00
fullwall
765c42cb45 Modify EntityTypes hooks to be less invasive 2016-11-22 01:00:52 +08:00
fullwall
dccfadb846 Fixes for 1.11 2016-11-17 17:00:16 +08:00
fullwall
5f473ee4cd Small fixes 2016-09-07 18:05:06 +08:00
fullwall
7cb434db21 Small optimisations 2016-08-25 19:40:58 +08:00
fullwall
95261e4548 Unchange where tracker replacement happens 2016-08-21 21:53:08 +08:00
fullwall
e344158ff4 Change where tracker replacement happens 2016-08-20 13:38:04 +08:00
fullwall
41deaf2fd0 Attempt to fix villager right clicks 2016-08-19 21:56:55 +08:00
fullwall
b1afe0de03 Work on navigation 2016-08-12 21:08:34 +08:00
fullwall
c0a3f0b1de Implement new API 2016-08-08 17:26:27 +08:00
fullwall
449a7bd46a Convert to multi module 2016-08-03 19:19:24 +08:00