<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:53:19 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-1105] Villagers act like it is Raining when they are in the Desert, and it Rains elsewhere.</title>
                <link>https://bugs.mojang.com/browse/MC-1105</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;As the title says.  I Don&apos;t expect villagers to take shelter from an overcast sky, when they are in the desert, and therefore it isn&apos;t actually raining.&lt;/p&gt;

&lt;p&gt;Not a huge issue, but worth noting.&lt;/p&gt;</description>
                <environment>Mac 10.7.5</environment>
        <key id="12405">MC-1105</key>
            <summary>Villagers act like it is Raining when they are in the Desert, and it Rains elsewhere.</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="evilseph">EvilSeph (Warren Loo)</assignee>
                                    <reporter username="eleazzaar">eleazzaar</reporter>
                        <labels>
                            <label>rain</label>
                    </labels>
                <created>Mon, 29 Oct 2012 01:29:00 +0100</created>
                <updated>Sat, 21 Nov 2020 22:26:51 +0100</updated>
                            <resolved>Wed, 25 Sep 2013 18:46:54 +0200</resolved>
                                    <version>Minecraft 1.4.2</version>
                    <version>Minecraft 1.4.6</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w09a</version>
                    <version>Snapshot 13w09b</version>
                                    <fixVersion>Minecraft 13w39a</fixVersion>
                                                        <votes>4</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="846142" author="arisabot" created="Sat, 21 Nov 2020 22:26:51 +0100"  >&lt;p&gt;An attachment with a disallowed file extension has been removed from this ticket.&lt;/p&gt;

&lt;p&gt;Executable files and documents are not allowed as attachments.&lt;br/&gt;
Please attach crash reports, log files and screenshots as they are instead of pasting them into a document.&lt;br/&gt;
&lt;sub&gt;&lt;font color=&quot;#888&quot;&gt;&amp;#8211; I am a bot. This action was performed automatically! Please report any issues in &lt;a href=&quot;https://discordapp.com/invite/rpCyfKV&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Discord&lt;/a&gt; or &lt;a href=&quot;https://www.reddit.com/r/Mojira/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Reddit&lt;/a&gt;&lt;/font&gt;&lt;/sub&gt;&lt;/p&gt;</comment>
                            <comment id="48421" author="bugi74" created="Thu, 28 Feb 2013 20:08:40 +0100"  >&lt;p&gt;Affects 13w09b.&lt;/p&gt;</comment>
                            <comment id="38604" author="banana478" created="Sun, 20 Jan 2013 19:21:17 +0100"  >&lt;p&gt;I can see reasoning for and against this bug, so we should let Mojang decide if it is a problem.&lt;/p&gt;</comment>
                            <comment id="38569" author="simons mith" created="Sun, 20 Jan 2013 17:44:45 +0100"  >&lt;p&gt;I don&apos;t believe this is &apos;Works as Intended&apos;. Can the bug status and resolution be corrected, please?&lt;/p&gt;</comment>
                            <comment id="38553" author="bugi74" created="Sun, 20 Jan 2013 16:24:19 +0100"  >&lt;p&gt;In any case, the fix is easy... The AI code just forgets to check whether the entity is actually wet.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Bug&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;EntityAIMoveIndoors.shouldExecute()&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; shouldExecute() {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((!&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityObj.worldObj.isDaytime() || &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityObj.worldObj.isRaining()) &amp;amp;&amp;amp; !&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityObj.worldObj.provider.hasNoSky) {
            ...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;Fix&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;EntityAIMoveIndoors.shouldExecute()&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; shouldExecute() {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((!&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityObj.worldObj.isDaytime() || (&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityObj.worldObj.isRaining() &amp;amp;&amp;amp; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityObj.isWet())) &amp;amp;&amp;amp; !&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.entityObj.worldObj.provider.hasNoSky) {
            ...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Tested on 1.4.7 with both a desert and plains city, using /weather -command. With the fix desert villagers remain outdoors even when it rains elsewhere.&lt;/p&gt;

&lt;p&gt;(Edit: this still leaves one case they might go in perhaps unexpectedly; if it is raining somewhere, and they get their feet wet (say, visit in the waters of their farms?), they might go in. (Perhaps to change their shoes?)  Didn&apos;t test that, but I don&apos;t think that is as big an issue.)&lt;/p&gt;

&lt;p&gt;(Edit2:&lt;br/&gt;
Another function that could be used is the one resolving whether it can do lightning at the villager&apos;s spot, but that one had some corner case, too. Also, the &quot;isWet()&quot; lets the villager stay under roofs, instead of going indoors, but then again, that is almost expected/natural behaviour for some people..)&lt;/p&gt;</comment>
                            <comment id="38551" author="bugi74" created="Sun, 20 Jan 2013 16:04:44 +0100"  >&lt;p&gt;Which rain would the villagers be afraid of? Bad reasoning, though I can see the joke.&lt;/p&gt;

&lt;p&gt;However, I&apos;d consider this a bug if burning does not stop in desert while it rains somewhere.. the behaviors (villagers and burning) should be consistent.&lt;/p&gt;</comment>
                            <comment id="38536" author="banana478" created="Sun, 20 Jan 2013 15:38:44 +0100"  >&lt;p&gt;Maybe villagers are just really scared of rain.&lt;/p&gt;</comment>
                            <comment id="24942" author="meta" created="Sun, 25 Nov 2012 23:03:36 +0100"  >&lt;p&gt;That&apos;s because it actually is raining (technically) but it does not get displayed for you because you are in a desert.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="303730">MC-178119</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="33250">MC-17247</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 5 Feb 2013 00:07:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10302"><![CDATA[Community Consensus]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10304"><![CDATA[Survival]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0h9n3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>