I have these two errors in my code that both say "ImageHeight has private access in greenfoot.Actor"
and have no idea on how to patch it. (Lines 7 & 8)
That is the block of code that the error is in
public boolean isOnSolidGround(){ boolean isOnGround = false; if (getY() > getWorld().getHeight() - 100) isOnGround = true; int imageWidth = getImage().getWidth(); int ImageHeight = getImage().getHeight(); if (getOneObjectAtOffset(imageWidth / -2, imageHeight / 2, ground.class) != null || getOneObjectAtOffset(imageWidth / 2, imageHeight / 2, ground.class) != null) isOnGround = true; return isOnGround; }