Skip to content

Commit

Permalink
fix: bundle gates not updating render
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed May 13, 2023
1 parent 43b14bb commit f7a2cb3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.google.common.collect.ImmutableSet;
import mrtjp.projectred.api.*;
import mrtjp.projectred.core.BundledSignalsLib;
import mrtjp.projectred.core.Configurator;
import mrtjp.projectred.core.FaceLookup;
import mrtjp.projectred.integration.GateType;
import mrtjp.projectred.lib.VecLib;
Expand Down Expand Up @@ -198,6 +199,7 @@ protected void read(MCDataInput packet, int key) {
switch (key) {
case KEY_PACKED_IO:
unpackClientData(packet.readInt());
if (Configurator.staticGates) tile().markRender();
break;
default:
super.read(packet, key);
Expand Down Expand Up @@ -371,9 +373,11 @@ protected void read(MCDataInput packet, int key) {
switch (key) {
case KEY_OUTPUT:
output = packet.readShort();
if (Configurator.staticGates) tile().markRender();
break;
case KEY_MASK:
mask = packet.readShort();
if (Configurator.staticGates) tile().markRender();
break;
default:
super.read(packet, key);
Expand Down Expand Up @@ -553,6 +557,7 @@ protected void read(MCDataInput packet, int key) {
switch (key) {
case KEY_CLIENT_IO:
unpackClientData(packet.readShort());
if (Configurator.staticGates) tile().markRender();
break;
default:
super.read(packet, key);
Expand Down Expand Up @@ -755,6 +760,7 @@ protected void read(MCDataInput packet, int key) {
switch (key) {
case KEY_PRESS_MASK:
pressMask = packet.readShort();
if (Configurator.staticGates) tile().markRender();
break;
default:
super.read(packet, key);
Expand Down Expand Up @@ -922,6 +928,7 @@ protected void read(MCDataInput packet, int key) {
switch (key) {
case KEY_BUNDLED_INPUT:
bInput0 = packet.readShort();
if (Configurator.staticGates) tile().markRender();
break;
default:
super.read(packet, key);
Expand Down

0 comments on commit f7a2cb3

Please sign in to comment.