Skip to content

Commit

Permalink
release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LasmGratel committed Oct 19, 2021
1 parent 62dc930 commit 834f232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G

# Mod Properties
mod_id = betterp2p
mod_version = 1.1.0
mod_version = 1.1.1
mod_group = com.projecturanus.betterp2p

# Minecraft & Forge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ class GuiBetterMemoryCard(msg: S2CListP2P) : GuiScreen(), TextureBound {
info.bindButton.enabled = false
info.selectButton.enabled = false
}
if (mode == BetterMemoryCardModes.COPY && !info.output) {
info.bindButton.enabled = false
}
drawButtons(info, x, y, mouseX, mouseY, partialTicks)
renderP2PColors(info.frequency, x, y)
}
Expand Down Expand Up @@ -218,6 +221,7 @@ class GuiBetterMemoryCard(msg: S2CListP2P) : GuiScreen(), TextureBound {
mode = BetterMemoryCardModes.values()[mode.ordinal.plus(1) % BetterMemoryCardModes.values().size]
modeString = getModeString()
modeButton.displayString = modeString

syncMemoryInfo()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fun linkP2P(player: EntityPlayer, input: PartP2PTunnel<*>, output: PartP2PTunnel
}
val cache = input.proxy.p2P
// TODO reduce changes
if (input.frequency.toInt() == 0) {
if (input.frequency.toInt() == 0 || input.isOutput) {
cache.updateFreq(input, cache.newFrequency())
input.onTunnelConfigChange()
output.onTunnelNetworkChange()
Expand Down

0 comments on commit 834f232

Please sign in to comment.