1.1.9
All checks were successful
SorceryCraft/pipeline/head This commit looks good

Fix Scrolling Bug
This commit is contained in:
TheBrokenRail 2020-03-11 09:06:10 -04:00
parent 6d8376b8a9
commit df7826d584
4 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,8 @@
### Changelog ### Changelog
**1.1.9**
* Fix Scrolling Bug
**1.1.8** **1.1.8**
* Tweak Casting Table UI * Tweak Casting Table UI

View File

@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
loader_version = 0.7.8+build.187 loader_version = 0.7.8+build.187
# Mod Properties # Mod Properties
mod_version = 1.1.8 mod_version = 1.1.9
maven_group = com.thebrokenrail maven_group = com.thebrokenrail
archives_base_name = sorcerycraft archives_base_name = sorcerycraft

View File

@ -79,7 +79,7 @@ public class CastingTableScreen extends ScreenWithHandler<CastingTableScreenHand
int j = (height - backgroundHeight) / 2; int j = (height - backgroundHeight) / 2;
int k = spells.length - 7; int k = spells.length - 7;
if (k > 1) { if (k > 0) {
int modifier = (int) (((float) indexStartOffset / k) * (1 + 139 - 27)); int modifier = (int) (((float) indexStartOffset / k) * (1 + 139 - 27));
blit(i + 94, j + 18 + modifier, getZOffset(), 0.0F, 199.0F, 6, 27, 256, 512); blit(i + 94, j + 18 + modifier, getZOffset(), 0.0F, 199.0F, 6, 27, 256, 512);
} else { } else {

View File

@ -5,7 +5,6 @@ import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment; import net.fabricmc.api.Environment;
import net.minecraft.client.render.entity.EntityRenderDispatcher; import net.minecraft.client.render.entity.EntityRenderDispatcher;
import net.minecraft.client.render.entity.EntityRenderer; import net.minecraft.client.render.entity.EntityRenderer;
import net.minecraft.screen.PlayerScreenHandler;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
@Environment(EnvType.CLIENT) @Environment(EnvType.CLIENT)
@ -16,6 +15,6 @@ public class SpellEntityRenderer extends EntityRenderer<SpellEntity> {
@Override @Override
public Identifier getTexture(SpellEntity spellEntity) { public Identifier getTexture(SpellEntity spellEntity) {
return PlayerScreenHandler.BLOCK_ATLAS_TEXTURE; return null;
} }
} }