hold items inplace
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ aebuild=7
|
|||||||
aegroup=appeng
|
aegroup=appeng
|
||||||
aebasename=appliedenergistics2
|
aebasename=appliedenergistics2
|
||||||
extended=extended_life
|
extended=extended_life
|
||||||
extendedversion=v0.52.2
|
extendedversion=v0.52.3
|
||||||
#########################################################
|
#########################################################
|
||||||
# Versions #
|
# Versions #
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|||||||
@@ -168,9 +168,9 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
|
|||||||
{
|
{
|
||||||
for( Slot slot : this.inventorySlots.inventorySlots )
|
for( Slot slot : this.inventorySlots.inventorySlots )
|
||||||
{
|
{
|
||||||
if( slot instanceof SlotRestrictedInput )
|
if( slot instanceof SlotME )
|
||||||
{
|
{
|
||||||
if( this.isPointInRegion( slot.xPos, slot.yPos, 18, 18, Mouse.getX(), this.mc.displayHeight - Mouse.getY() ) )
|
if( this.isPointInRegion( slot.xPos, slot.yPos, 18, 18, currentMouseX, currentMouseY ) )
|
||||||
{
|
{
|
||||||
this.delayedUpdate = true;
|
this.delayedUpdate = true;
|
||||||
break;
|
break;
|
||||||
@@ -549,7 +549,29 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
|
|||||||
public void updateScreen()
|
public void updateScreen()
|
||||||
{
|
{
|
||||||
this.repo.setPower( this.monitorableContainer.isPowered() );
|
this.repo.setPower( this.monitorableContainer.isPowered() );
|
||||||
if( !isShiftKeyDown() && this.delayedUpdate )
|
if( this.delayedUpdate )
|
||||||
|
{
|
||||||
|
if( isShiftKeyDown() )
|
||||||
|
{
|
||||||
|
this.delayedUpdate = false;
|
||||||
|
for( Slot slot : this.inventorySlots.inventorySlots )
|
||||||
|
{
|
||||||
|
if( slot instanceof SlotME )
|
||||||
|
{
|
||||||
|
if( this.isPointInRegion( slot.xPos, slot.yPos, 18, 18, currentMouseX, currentMouseY ) )
|
||||||
|
{
|
||||||
|
this.delayedUpdate = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.delayedUpdate = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( !this.delayedUpdate )
|
||||||
{
|
{
|
||||||
this.repo.updateView();
|
this.repo.updateView();
|
||||||
this.setScrollBar();
|
this.setScrollBar();
|
||||||
|
|||||||
Reference in New Issue
Block a user