Comments (7)
Could i please see your code?
This is due to commit 1cddc52
from npclib.
Code: http://pastebin.com/d7MjxiFX
NPCController line 64 (from the error) is 'npc.spawn(location);'
from npclib.
Where is someValidUUID?
Also could you open a new issue for the wierd looking npcs?
from npclib.
someValidUUID is just a field with a UUID in it
from npclib.
I did attempt to find the cause of this issue, and I believed it to be that the lib was being rate-limited.
When you call setSkin(UUID uuid)
which calls trySetSkin()
it requests the skin from Mojang, but doesn't set it because the entity isn't spawned yet. When you call spawn(Location location)
right after calling setSkin(UUID uuid)
it requests the skin again, but Mojang rate-limits the request, so the PlayerProfile it returns is null, hence the NPE.
I decided to remove the trySetSkin()
from the setSkin(UUID uuid)
method and move the trySetSkin()
in the spawn(Location location) to after the entity is spawned, but for some reason the skin still didn't work.
from npclib.
Hi,
I'm getting the same nullpointer error if I try and set a skin on Spigot v1_8_R2.
http://pastebin.com/smp4dvxs
from npclib.
Me either on 1.7.10
from npclib.
Related Issues (13)
- Non-Citizens NPC Implementation HOT 2
- Update to Spigot-1.8 HOT 1
- NoSuchFieldException makes isSupported() always return false HOT 2
- java.lang.IllegalArgumentException: Invalid UUID string: HOT 2
- Weird bodies HOT 4
- Pathfinding HOT 3
- Spammy bug with AntiAura HOT 1
- HumanNPC#setName errors HOT 3
- Skins Not Working HOT 5
- Body direction HOT 7
- Living NPC is Invisible HOT 3
- Issue with #walkTo(Location)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npclib.