Jump to content

Recommended Posts

Posted

Forge version 1.10.2-12.18.3.2185

 

NetHandlerPlayClient, line 2148 (inside handleEntityProperties()):

 

                    if (iattributeinstance == null)
                    {
                        iattributeinstance = abstractattributemap.registerAttribute(new RangedAttribute((IAttribute)null, spacketentityproperties$snapshot.getName(), 0.0D, 2.2250738585072014E-308D, Double.MAX_VALUE));
                    }

 

Inside the RangedAttribute CTOR an exception is generated because the default value (0.0D) is less than the minimum bound (2.2250738585072014E-308D).  Shouldn't the minimum bound be 0.0D, or -Double.MAX_VALUE?

 

I am new to this area of modding so I could be looking at this entirely wrong. :)

 

Posted

2.2 * 10-30 is definitely greater than zero.

 

By about 0.0000000000000000000000000000022507

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

2.2 * 10-30 is definitely greater than zero.

 

By about 0.0000000000000000000000000000022507

If you look closely, it is 2.2 * 10-308, making it so much closer to 0, and that may be outside of the Double range, causing it to set to 0? Don't know for sure, I'm too lazy to figure that out.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

2.2 * 10-30 is definitely greater than zero.

 

By about 0.0000000000000000000000000000022507

If you look closely, it is 2.2 * 10-308, making it so much closer to 0, and that may be outside of the Double range, causing it to set to 0? Don't know for sure, I'm too lazy to figure that out.

 

You're right, but it's still a positive value, and 0 is definitely smaller than it, which is why it's throwing a "zero is below minimum" error.

 

(Java's Double.MIN_VALUE is 4.9E-324 for reference)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.