Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
reobf committed Jul 22, 2024
1 parent aee1e49 commit ede15c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ catch (Exception ignored) {

// Pulls version first from the VERSION env and then git tag
String identifiedVersion = null
String versionOverride = '0.0.17p11'
String versionOverride = '0.0.17p12'
try {
// Produce a version based on the tag, or for branches something like 0.2.2-configurable-maven-and-extras.38+43090270b6-dirty
if (versionOverride == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import reobf.proghatches.gt.metatileentity.util.IMultiCircuitSupport;
import reobf.proghatches.lang.LangManager;
import reobf.proghatches.main.registration.Registration;
import reobf.proghatches.util.ProghatchesUtil;

public class MultiCircuitInputBus extends GT_MetaTileEntity_Hatch_InputBus implements IMultiCircuitSupport{
@Override
Expand All @@ -37,7 +38,7 @@ public ItemStackHandler getInventoryHandler() {
public void addUIWidgets(Builder builder, UIBuildContext buildContext) {

super.addUIWidgets(builder, buildContext);

ProghatchesUtil.attachZeroSizedStackRemover(builder, buildContext);
for(int i=1;i<4;i++)
builder.widget(
new SlotWidget(new BaseSlot(inventoryHandler, getCircuitSlot()+i) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,15 @@ protected ModularWindow createPatternWindow(final EntityPlayer player) {
builder.setGuiTint(getGUIColorization());
builder.setDraggable(true);
builder.setPos((a, b) -> new Pos2d(PARENT_WIDTH + b.getPos().getX(), PARENT_HEIGHT * 0 + b.getPos().getY()));
for (int i = 0; i < 36; i++) {
MappingItemHandler shared_handler=new MappingItemHandler(pattern, 0, 36);
//use shared handler
//or shift clicking a pattern in pattern slot will just transfer it to another pattern slot
//instead of player inventory!
for (int i = 0; i < 36; i++) {

BaseSlot bs;
builder.widget(new SlotWidget(bs = new BaseSlot(new MappingItemHandler(pattern, 0, 36), i)

builder.widget( new SlotWidget(bs = new BaseSlot(shared_handler, i)

) {

Expand All @@ -389,10 +395,12 @@ protected ItemStack getItemStackForRendering(Slot slotIn) {
return output != null ? output : stack;

}
}.setFilter(itemStack -> itemStack.getItem() instanceof ICraftingPatternItem).setChangeListener(() -> {
}.setShiftClickPriority(-1)
.setFilter(itemStack -> itemStack.getItem() instanceof ICraftingPatternItem).setChangeListener(() -> {
onPatternChange();
}).setPos((i % 4) * 18 + 3, (i / 4) * 18 + 3).setBackground(getGUITextureSet().getItemSlot(),
GT_UITextures.OVERLAY_SLOT_PATTERN_ME));


}

Expand Down

0 comments on commit ede15c7

Please sign in to comment.