Using disguiseAs crashes 1.17
matthewperiut opened this issue ยท 4 comments
I made sure to not use any other mods and to try it in an example-fabric-mod project, but regardless disguiseAs crashes the game. The log is below, further down is my code that I added into fabric-example-mod
(Editted to use pastebin)
// error
https://pastebin.com/zgHRQjYz
// source
https://pastebin.com/uUcHsGhd
// full log
https://pastebin.com/YL85bYPm
Oh, and please make sure code is executing in server only (not sure if it is in above example). So ```java
if(!world.isClient)
... disguise ...
Oh wait actually I think I see why
java.lang.NullPointerException: Cannot invoke "net.minecraft.scoreboard.Team.getPlayerList()" because "team" is null
in full log
I wish I saw that haha