Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when dog teleports through (nether) portal #23

Closed
FPSUsername opened this issue Jul 12, 2021 · 1 comment
Closed

Warnings when dog teleports through (nether) portal #23

FPSUsername opened this issue Jul 12, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@FPSUsername
Copy link

Information

Server version: PurPur v1.17.1 build 2165
MyDog version: v0.1.1-alpha
Java version: AdoptOpenJDK 16 OpenJ9

Issue

When the owned dog enters a nether portal and the player doesn't, the server console generates a warning and an illegal argument exception.
I'm not sure if it's intended that the dog stays in the nether, but it returned back into the overworld once I slept in a bed.
This log continued every 10 seconds till the tog returned.

Log

[22:26:11] [Server thread/WARN]: [MyDog] Task #83 for MyDog v0.1.1-alpha generated an exception
java.lang.IllegalArgumentException: Cannot measure distance between Survival and Spawn_nether
	at org.bukkit.Location.distanceSquared(Location.java:510) ~[patched_1.17.1.jar:git-Purpur-1265]
	at org.bukkit.Location.distance(Location.java:493) ~[patched_1.17.1.jar:git-Purpur-1265]
	at dk.fido2603.mydog.MyDog$1.run(MyDog.java:254) ~[?:?]
	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.1.jar:git-Purpur-1265]
	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.17.1.jar:git-Purpur-1265]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1565) ~[patched_1.17.1.jar:git-Purpur-1265]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:492) ~[patched_1.17.1.jar:git-Purpur-1265]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[patched_1.17.1.jar:git-Purpur-1265]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1270) ~[patched_1.17.1.jar:git-Purpur-1265]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Purpur-1265]
	at net.minecraft.server.MinecraftServer$$Lambda$3667/0x00000000acf4bb58.run(Unknown Source) ~[?:?]
	at java.lang.Thread.run(Unknown Source) [?:?]
@HeroGamers HeroGamers added the bug Something isn't working label Jul 16, 2021
@HeroGamers
Copy link
Owner

Hi there!

Thanks for the bug report!
I haven't been that active on the project lately, due to work and school, but whenever I get back to the project I will be sure to give it a look!
If it's breaking too much stuff and making the plugin unusable, I'll take a look at it as soon as I get some time to do so.

Cheers,
Hero

@HeroGamers HeroGamers added this to MyDog May 26, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in MyDog May 26, 2023
@HeroGamers HeroGamers moved this from 🆕 New to ✅ Done in MyDog May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants