<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:18:28 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-8645] Redstone wire receiving level 1 power from a block, pointing at another block with wire on it will not power that block</title>
                <link>https://bugs.mojang.com/browse/MC-8645</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Very very weird bug i&apos;ve found. Everything is on the screenshot. The strength of the signal must be 1. I&apos;ve placed some similar circuits to show the difference and demonstrate the bug better.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Codeanalysis&quot;&gt;&lt;/a&gt;Code analysis&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://bugs.mojang.com/browse/MC-8645?focusedCommentId=569428#comment-569428&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Comment&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Windows 7 64bit&lt;br/&gt;
Java 1.7.0 (as Minecraft shows)</environment>
        <key id="21606">MC-8645</key>
            <summary>Redstone wire receiving level 1 power from a block, pointing at another block with wire on it will not power that block</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="-1">Unassigned</assignee>
                                    <reporter username="RedCMD">RedCMD</reporter>
                        <labels>
                            <label>redstone</label>
                            <label>redstone-comparator</label>
                            <label>redstone-dust</label>
                            <label>signal-decay</label>
                            <label>signal-strength</label>
                    </labels>
                <created>Tue, 29 Jan 2013 04:08:58 +0100</created>
                <updated>Thu, 30 Apr 2020 01:00:29 +0200</updated>
                            <resolved>Wed, 29 Apr 2020 19:31:47 +0200</resolved>
                                    <version>Snapshot 13w03a</version>
                    <version>Snapshot 13w04a</version>
                    <version>Snapshot 13w09c</version>
                    <version>Snapshot 13w10a</version>
                    <version>Minecraft 1.5</version>
                    <version>Snapshot 13w11a</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.6.4</version>
                    <version>Minecraft 13w42b</version>
                    <version>Minecraft 13w43a</version>
                    <version>Minecraft 1.7.1</version>
                    <version>Minecraft 1.7.2</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w08a</version>
                    <version>Minecraft 1.8.2-pre4</version>
                    <version>Minecraft 1.8.2-pre5</version>
                    <version>Minecraft 15w40b</version>
                    <version>Minecraft 1.10.2</version>
                    <version>Minecraft 16w38a</version>
                    <version>Minecraft 16w39c</version>
                    <version>Minecraft 16w42a</version>
                    <version>Minecraft 16w43a</version>
                    <version>Minecraft 16w44a</version>
                    <version>Minecraft 1.11 Pre-Release 1</version>
                    <version>Minecraft 1.12</version>
                    <version>Minecraft 1.12.2</version>
                    <version>Minecraft 18w07c</version>
                    <version>Minecraft 1.13.1</version>
                    <version>1.15.2</version>
                    <version>20w11a</version>
                    <version>20w12a</version>
                    <version>20w17a</version>
                                    <fixVersion>Minecraft 1.8</fixVersion>
                    <fixVersion>20w18a</fixVersion>
                                                        <votes>16</votes>
                                    <watches>11</watches>
                                                                            <comments>
                            <comment id="683955" author="pokechu22" created="Wed, 29 Apr 2020 19:31:47 +0200"  >&lt;p&gt;&lt;a href=&quot;https://www.minecraft.net/en-us/article/minecraft-snapshot-20w18a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;20w18a changelog&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;A wire that is redirected to go over a block will now always provide power to the block. This is most noticeable when the wire has signal strength 1.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="683932" author="t3st3ro" created="Wed, 29 Apr 2020 19:14:00 +0200"  >&lt;p&gt;! Seems to be resolved in 20w18a.&lt;/p&gt;</comment>
                            <comment id="569428" author="redcmd" created="Thu, 25 Jul 2019 09:19:11 +0200"  >&lt;p&gt;The problem is that when a redstone component (piston, redstone lamp, trapdoor, repeater etc) checks to see if redstone is pointing towards it&lt;br/&gt;
 It actually checks to see if the dust is pointing away from it AND if it is not pointing to the left or right&lt;br/&gt;
 (There&apos;s a separate check to see if the dust is a dot, rather than a line)&lt;br/&gt;
 It should also check if the dust is pointing towards the component&lt;br/&gt;
There is a few performance optimizations that can be done at the same time&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Inside BlockRedstoneWire.class, getSignal()&lt;br/&gt;
 Currently, it runs this code...&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Checks if the block is shouldSignal, if false return 0 (this seems unneeded as getDirectSignal() already does the exact same check beforehand)&lt;/li&gt;
	&lt;li&gt;Checks if the power level of dust equals 0, if true return 0 (Good)&lt;/li&gt;
	&lt;li&gt;Checks if the direction is facing upwards (if there&apos;s a redstone component below the dust. Upwards is from the perspective of the component), if true return power level (Good)&lt;/li&gt;
	&lt;li&gt;Runs for loop, checking each of the four horizontal directions to see if the dust should connect to that side and saves it to a list (This is unneeded as not all directions need to be checked resulting in extra unneeded lag)&lt;/li&gt;
	&lt;li&gt;Checks list to see if the dust is connecting nowhere (dot). (This check should be done last to save on lag)&lt;/li&gt;
	&lt;li&gt;Checks list to see if dust is pointing away from the redstone component AND if it&apos;s NOT pointing to the left OR right, if true returns power level&lt;/li&gt;
	&lt;li&gt;else return 0&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Here is my solution to the problem&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Check if the block is shouldSignal, if false return 0 (this may or may not be needed)&lt;/li&gt;
	&lt;li&gt;Check if the direction is facing downwards (Downwards is from the perspective of the redstone component), if true return 0 (this is if the redstone component is on top of the redstone dust (won&apos;t be powered))&lt;/li&gt;
	&lt;li&gt;Check if the power level of dust equals 0, if true return 0 (unchanged)&lt;/li&gt;
	&lt;li&gt;Check if the direction is facing upwards, if true return power level (unchanged)&lt;/li&gt;
	&lt;li&gt;Check if the dust can connect in the direction of the redstone component (isPowerSourceAt(direction.getOpposite()))), if true return power level (this check is for if the dust is a line)&lt;/li&gt;
	&lt;li&gt;Check if it can connect to the left OR right, if true return 0 (this accounts if the dust is a dot or isn&apos;t pointing towards the redstone component)&lt;/li&gt;
	&lt;li&gt;else return power level&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This fix will also increase performance as it doesn&apos;t need to check if the dust can connect to the opposite side and it only checks the directions it could connect to as it needs them, rather than all at once and using wastefully&lt;/p&gt;

&lt;p&gt;Below are different scenarios for a redstone lamp being powered or not powered by dust that has been redirected&lt;/p&gt;

&lt;p&gt;The redstone dust is sitting on the gold block&lt;br/&gt;
 A redstone lamp will be used to show where the dust is powering&lt;br/&gt;
 Stone buttons will be used to redirect the dust&lt;br/&gt;
In some pictures, there is dust on top of the redstone lamp&lt;br/&gt;
 Vanilla is on the left, fixed on the right&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266666_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266666/266666_MC8645+Down.png&quot; title=&quot;MC8645 Down.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266666&quot; file-preview-title=&quot;MC8645 Down.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266666/_thumb_266666.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 Check if the direction is facing downwards, if true return 0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266675_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266675/266675_MC8645+0.png&quot; title=&quot;MC8645 0.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266675&quot; file-preview-title=&quot;MC8645 0.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266675/_thumb_266675.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 Check if the power level of the dust equals 0, if true return 0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266674_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266674/266674_MC8645+Up.png&quot; title=&quot;MC8645 Up.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266674&quot; file-preview-title=&quot;MC8645 Up.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266674/_thumb_266674.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&#160;&lt;br/&gt;
 Check if the direction is facing upwards, if true return power level&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266671_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266671/266671_MC8645+Towards+Vanilla.png&quot; title=&quot;MC8645 Towards Vanilla.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266671&quot; file-preview-title=&quot;MC8645 Towards Vanilla.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266671/_thumb_266671.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266670_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266670/266670_MC8645+Towards+Fixed.png&quot; title=&quot;MC8645 Towards Fixed.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266670&quot; file-preview-title=&quot;MC8645 Towards Fixed.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266670/_thumb_266670.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 Check if the dust can connect in the direction of the redstone component, if true return power level. (Vanilla doesn&apos;t have this check, so it returns 0)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266678_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266678/266678_MC8645+Side.png&quot; title=&quot;MC8645 Side.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266678&quot; file-preview-title=&quot;MC8645 Side.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266678/_thumb_266678.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 Check if dust is pointing away from the redstone component AND NOT pointing to the left OR right, if true returns power level (Only vanilla has this check, I split this up to fix the bug and increase performance)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266665_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266665/266665_MC8645+Dot.png&quot; title=&quot;MC8645 Dot.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266665&quot; file-preview-title=&quot;MC8645 Dot.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266665/_thumb_266665.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 Check if the dust is connecting nowhere (dot) (Vanilla has this check, but my version has this check built into the next check)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266676_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266676/266676_MC8645+Away.png&quot; title=&quot;MC8645 Away.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266676&quot; file-preview-title=&quot;MC8645 Away.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266676/_thumb_266676.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 Check if it can connect to the left OR right, if false return power level&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266677_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266677/266677_MC8645+Side%26Away.png&quot; title=&quot;MC8645 Side&amp;Away.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266677&quot; file-preview-title=&quot;MC8645 Side&amp;Away.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266677/_thumb_266677.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 else return 0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Some more pictures with vanilla on the left and fixed on the right&lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266673_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266673/266673_MC8645+Towards%26Away+Vanilla.png&quot; title=&quot;MC8645 Towards&amp;Away Vanilla.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266673&quot; file-preview-title=&quot;MC8645 Towards&amp;Away Vanilla.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266673/_thumb_266673.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266672_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266672/266672_MC8645+Towards%26Away+Fixed.png&quot; title=&quot;MC8645 Towards&amp;Away Fixed.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266672&quot; file-preview-title=&quot;MC8645 Towards&amp;Away Fixed.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266672/_thumb_266672.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266668_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266668/266668_MC8645+Side%26Towards+Vanilla.png&quot; title=&quot;MC8645 Side&amp;Towards Vanilla.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266668&quot; file-preview-title=&quot;MC8645 Side&amp;Towards Vanilla.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266668/_thumb_266668.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266667_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266667/266667_MC8645+Side%26Towards+Fixed.png&quot; title=&quot;MC8645 Side&amp;Towards Fixed.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266667&quot; file-preview-title=&quot;MC8645 Side&amp;Towards Fixed.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266667/_thumb_266667.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;
 Notice how vanilla doesn&apos;t power the redstone lamp even though the dust is pointing towards it&lt;br/&gt;
 And only if there is an isPowerSourceAt() on the other side of the lamp&lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;266664_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/266664/266664_MC8645+Away%26Towards.png&quot; title=&quot;MC8645 Away&amp;Towards.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;266664&quot; file-preview-title=&quot;MC8645 Away&amp;Towards.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/266664/_thumb_266664.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Code using Mojang mappings&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&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;int&lt;/span&gt; getSignal(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, Direction direction) {
    
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) {  &lt;span class=&quot;code-comment&quot;&gt;//Vanilla
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.shouldSignal) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
        }
        
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; n = blockState.getValue(POWER);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (n == 0) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (direction == Direction.UP) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; n;
        }
   
        EnumSet&amp;lt;Direction&amp;gt; enumSet = EnumSet.noneOf(Direction.class);
        &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; (Direction direction2 : Direction.Plane.HORIZONTAL) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.isPowerSourceAt(blockGetter, blockPos, direction2))
                enumSet.add(direction2);
        }
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (direction.getAxis().isHorizontal() &amp;amp;&amp;amp; enumSet.isEmpty()) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; n;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (enumSet.contains(direction) &amp;amp;&amp;amp; !enumSet.contains(direction.getCounterClockWise()) &amp;amp;&amp;amp; !enumSet.contains(direction.getClockWise())) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; n;
        }
        
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
        
    } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {    &lt;span class=&quot;code-comment&quot;&gt;//Fixes MC-8645 and increases performance
&lt;/span&gt;       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.shouldSignal) {   &lt;span class=&quot;code-comment&quot;&gt;//This is already checked in getDirectSignal()
&lt;/span&gt;          &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
       }
   
       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (direction == Direction.DOWN) {
          &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
       }

       &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; n = blockState.getValue(POWER);
       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (n == 0) {
          &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
       }

       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (direction == Direction.UP) {
          &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; n;
       }
   
       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.isPowerSourceAt(blockGetter, blockPos, direction.getOpposite())) {
          &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; n;
       }
       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.isPowerSourceAt(blockGetter, blockPos, direction.getCounterClockWise() || &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.isPowerSourceAt(blockGetter, blockPos, direction.getClockWise())) {
          &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
       }
       
       &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; n;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="489423" author="oval" created="Mon, 17 Sep 2018 18:27:26 +0200"  >&lt;p&gt;Confirmed for 1.13.1.&lt;/p&gt;</comment>
                            <comment id="395306" author="schortan" created="Sun, 23 Jul 2017 23:27:05 +0200"  >&lt;p&gt;Can confirm for 1.12&lt;/p&gt;</comment>
                            <comment id="333245" author="neko" created="Wed, 5 Oct 2016 01:44:15 +0200"  >&lt;p&gt;16w39c is already listed.&lt;/p&gt;</comment>
                            <comment id="333244" author="zocraft2" created="Wed, 5 Oct 2016 01:43:44 +0200"  >&lt;p&gt;Can confirm for 16w39c.&lt;/p&gt;</comment>
                            <comment id="217392" author="banana478" created="Wed, 28 Jan 2015 23:34:04 +0100"  >&lt;p&gt;Still an issue in 1.8.2-pre5. See &lt;a href=&quot;https://bugs.mojang.com/browse/MC-76971&quot; title=&quot;Redstone under very specific circumstances sometimes doesn&amp;#39;t power a block&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-76971&quot;&gt;&lt;del&gt;MC-76971&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="187919" author="qmagnet" created="Wed, 13 Aug 2014 00:56:00 +0200"  >&lt;p&gt;This is fixed in 14w32d&lt;/p&gt;</comment>
                            <comment id="143114" author="talven81" created="Tue, 25 Feb 2014 20:55:05 +0100"  >&lt;p&gt;This appears to be a visual glitch. Since the power output is 1, it should not travel 2 blocks, however the side of the block with the redstone appears powered. I believe this is due to the side redstone being in the same block as the powered redstone piece.&lt;/p&gt;</comment>
                            <comment id="61920" author="fibonatic" created="Sat, 20 Apr 2013 16:25:41 +0200"  >&lt;p&gt;I can also confirm that this bug still exists in Minecraft 1.5.1.&lt;/p&gt;</comment>
                            <comment id="40890" author="miinipaa" created="Tue, 29 Jan 2013 12:24:40 +0100"  >&lt;p&gt;Can confirm: if you break redstone on top of block with torch it work as it should, if you place it back it won&apos;t.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="21616">MC-8654</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="61008">MC-38757</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="97399">MC-69764</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="105423">MC-76971</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="150959">MC-108083</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="203713">MC-131306</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="13661">MC-2255</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="15844">MC-3703</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23005">MC-9405</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="315286">MC-181489</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="229260" name="2019-07-25_19.10.44.png" size="91330" author="RedCMD" created="Thu, 25 Jul 2019 09:18:26 +0200"/>
                            <attachment id="229261" name="2019-07-25_19.11.17.png" size="91373" author="RedCMD" created="Thu, 25 Jul 2019 09:18:25 +0200"/>
                            <attachment id="229262" name="2019-07-25_19.13.15.png" size="185856" author="RedCMD" created="Thu, 25 Jul 2019 09:18:29 +0200"/>
                            <attachment id="229263" name="2019-07-25_19.13.42.png" size="185979" author="RedCMD" created="Thu, 25 Jul 2019 09:18:29 +0200"/>
                            <attachment id="229264" name="2019-07-25_19.17.04.png" size="271441" author="RedCMD" created="Thu, 25 Jul 2019 09:18:30 +0200"/>
                            <attachment id="229265" name="2019-07-25_19.17.24.png" size="270996" author="RedCMD" created="Thu, 25 Jul 2019 09:18:30 +0200"/>
                            <attachment id="266675" name="MC8645 0.png" size="35490" author="RedCMD" created="Thu, 20 Feb 2020 21:18:00 +0100"/>
                            <attachment id="266664" name="MC8645 Away&amp;Towards.png" size="41319" author="RedCMD" created="Thu, 20 Feb 2020 21:06:18 +0100"/>
                            <attachment id="266676" name="MC8645 Away.png" size="39622" author="RedCMD" created="Thu, 20 Feb 2020 21:22:19 +0100"/>
                            <attachment id="266665" name="MC8645 Dot.png" size="37603" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266666" name="MC8645 Down.png" size="35787" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266677" name="MC8645 Side&amp;Away.png" size="44906" author="RedCMD" created="Thu, 20 Feb 2020 21:32:29 +0100"/>
                            <attachment id="266667" name="MC8645 Side&amp;Towards Fixed.png" size="43404" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266668" name="MC8645 Side&amp;Towards Vanilla.png" size="44343" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266678" name="MC8645 Side.png" size="40769" author="RedCMD" created="Thu, 20 Feb 2020 21:32:29 +0100"/>
                            <attachment id="266670" name="MC8645 Towards Fixed.png" size="36587" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266671" name="MC8645 Towards Vanilla.png" size="38243" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266672" name="MC8645 Towards&amp;Away Fixed.png" size="46968" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266673" name="MC8645 Towards&amp;Away Vanilla.png" size="46736" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="266674" name="MC8645 Up.png" size="32309" author="RedCMD" created="Thu, 20 Feb 2020 21:06:19 +0100"/>
                            <attachment id="20167" name="goodandbad.jpg" size="747172" author="tossha" created="Tue, 29 Jan 2013 04:08:58 +0100"/>
                            <attachment id="20170" name="screenshot-1.jpg" size="183139" author="nscks" created="Tue, 29 Jan 2013 05:21:45 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 25 Feb 2014 22:58:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11901" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Category</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11615"><![CDATA[Redstone]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></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_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02s27:</customfieldvalue>

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