diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameRenderer.java b/core/src/ru/deadsoftware/cavecraft/game/GameRenderer.java
index 648e785e8d07a96c9de6728124be0bcaac3013a8..7ab146b7235c7342b0a61b56e6bd2b98e4218a9d 100644 (file)
if (maxY>gameProc.world.getHeight()) maxY = gameProc.world.getHeight();
for (int y=minY; y<maxY; y++) {
for (int x=minX; x<maxX; x++) {
- if (gameProc.world.getForeMap(x,y)>0) {
+ if (gameProc.world.getForeMap(x,y)>0 && !Items.BLOCKS.getValueAt(gameProc.world.getForeMap(x,y)).background) {
spriteBatch.draw(
Assets.blockTextures[Items.BLOCKS.getValueAt(gameProc.world.getForeMap(x,y)).getTexture()],
x * 16 - camera.position.x,y * 16 - camera.position.y);
float y = camera.viewportHeight/2-Assets.creativeInv.getRegionHeight()/2;
spriteBatch.draw(Assets.creativeInv, x, y);
spriteBatch.draw(Assets.creativeScroll, x+156,
- y+18+(gameProc.creativeScroll*(72/(gameProc.maxCreativeScroll+1))));
+ y+18+(gameProc.creativeScroll*(72/gameProc.maxCreativeScroll)));
for (int i=gameProc.creativeScroll*40; i<(gameProc.creativeScroll+1)*40; i++) {
if (i>0 && i<Items.BLOCKS.size)
spriteBatch.draw(Assets.blockTextures[Items.BLOCKS.getValueAt(i).getTexture()],