mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Fixed #11802
This commit is contained in:
@@ -92,6 +92,7 @@ public class CanvasEditDialog extends BaseDialog{
|
||||
|
||||
if(button == KeyCode.mouseLeft){
|
||||
if(fill){
|
||||
if(!pix.in(cx, cy)) return false;
|
||||
stack.clear();
|
||||
int src = curColor;
|
||||
int dst = pix.get(cx, cy);
|
||||
@@ -135,7 +136,7 @@ public class CanvasEditDialog extends BaseDialog{
|
||||
}
|
||||
|
||||
void draw(int x, int y){
|
||||
if(pix.get(x, y) != curColor){
|
||||
if(pix.in(x, y) && pix.get(x, y) != curColor){
|
||||
pix.set(x, y, curColor);
|
||||
Pixmaps.drawPixel(texture, x, y, curColor);
|
||||
modified = true;
|
||||
|
||||
Reference in New Issue
Block a user