Skip to content

Commit

Permalink
fix bugs with NOT gate, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
LemmaEOF committed Jul 24, 2018
1 parent 42646bf commit f98fb95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ext {
projectName = 'InfraRedstone'

useElytraVersionFormat = System.properties["release"] == null
version = '1.0'
version = '1.1'

concreteVersion = '0.5.40'
concreteModules = [ 'common', 'inventory', 'recipe', 'network', 'reflect' ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void onStitchTexture(TextureStitchEvent.Pre event) {

event.getMap().registerSprite(new ResourceLocation("infraredstone:blocks/gate_xor_glow"));

event.getMap().registerSprite(new ResourceLocation("infraredstone:blocks/gate_not_glow"));
event.getMap().registerSprite(new ResourceLocation("infraredstone:blocks/gate_not_glow_in"));
event.getMap().registerSprite(new ResourceLocation("infraredstone:blocks/gate_not_glow_out"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public void update() {
if (state.getBlock() instanceof BlockGateNot) {
EnumFacing back = state.getValue(BlockGateNot.FACING).getOpposite();
int sig = InRedLogic.findIRValue(world, pos, back);
if (sig != 0) backActive = true; else backActive = false;
backActive = sig != 0;
if (!booleanMode) {
signal.setNextSignalValue(~sig);
signal.setNextSignalValue((~sig) & 0b11_1111);
} else {
if (sig == 0) {
signal.setNextSignalValue(1);
Expand Down

0 comments on commit f98fb95

Please sign in to comment.