Skip to content

Commit

Permalink
fix: proxy entity not spawning
Browse files Browse the repository at this point in the history
this also fixes leashes not rendering

Signed-off-by: rooot <[email protected]>
  • Loading branch information
RoootTheFox committed Oct 25, 2023
1 parent ac85d8d commit c14b407
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ else if (holderTarget != holderActual) {
if (leashplayers$proxy == null) {
leashplayers$proxy = new LeashProxyEntity(leashplayers$self);
leashplayers$self.getWorld().spawnEntity(leashplayers$proxy);
leashplayers$proxy.refreshPositionAndAngles(leashplayers$self.getX(), leashplayers$self.getY(), leashplayers$self.getZ(), 0.0F, 0.0F);
}
leashplayers$proxy.attachLeash(leashplayers$holder, true);

Expand Down

0 comments on commit c14b407

Please sign in to comment.