Skip to content

Commit 601f0ee

Browse files
committed
add changelog and remove redundant cast
1 parent fd9f330 commit 601f0ee

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Changelog
33
index: 4
44
---
55

6+
## 4.5.0
7+
8+
- 💥 BREAKING CHANGE: Only use double for methods instead of supporting both float and doubles. This was unnecessary and cluttered the BlueJ interface with "duplicated" methods. This could potentially break your project if you were using floats, just replace them with doubles, and you are good to go.
9+
610
## 4.4.0
711

812
- 🚀 Feat: Revert BREAKING CHANGE and add addStage, removeStage and getStage again.

resources/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ author.url=https://openpatch.org
4040
# This is NOT a direct link to where to download it.
4141

4242
library.url=https://github.com/openpatch/scratch-for-java
43-
library.version=4.4.0
43+
library.version=4.5.0
4444

4545

4646
# Set the category (or categories) of your Library from the following list:

src/org/openpatch/scratch/extensions/text/Text.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public double getWidth() {
235235
}
236236

237237
public void setWidth(double width) {
238-
this.width = (double) width;
238+
this.width = width;
239239
}
240240

241241
public void setAlign(int align) {
@@ -267,8 +267,8 @@ private void drawBubble() {
267267
return;
268268
}
269269

270-
this.y = (double) (-this.sprite.getY() + applet.height / 2 - this.sprite.getHeight() * 1.1 / 2);
271-
this.x = (double) (this.sprite.getX() + applet.width / 2 + this.sprite.getWidth() * 0.9 / 2);
270+
this.y = -this.sprite.getY() + applet.height / 2 - this.sprite.getHeight() * 1.1 / 2;
271+
this.x = this.sprite.getX() + applet.width / 2 + this.sprite.getWidth() * 0.9 / 2;
272272

273273
this.width = maxLineWidth + 16;
274274
this.text = String.join("\n", lines);

0 commit comments

Comments
 (0)