Skip to content

Commit

Permalink
fix random crash when constructor is null
Browse files Browse the repository at this point in the history
  • Loading branch information
sk7725 authored Aug 6, 2022
1 parent a1d458c commit ee146e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/betamindy/world/blocks/storage/Shop.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public Shop(String name){
}

public int checkUnitType(UnitType unit){
if(unit.flying) return 1;
if(unit.flying || unit.constructor == null) return 1;

Unit u = unit.constructor.get();

Expand Down

1 comment on commit ee146e4

@lpy0315
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I'm a Mindustry player and I love your mod. I have a problem I want to tell you. Because I am a Chinese, it is hard for me to communicate with you on Github. Can you send an email to [email protected]? please

안녕하세요, 저는 mindustry 플레이어입니다. 당신의 모듈을 정말 좋아합니다.나는 너에게 알리고 싶은 문제가 생겼다.제가 중국 사람이기 때문에 github에서 당신과 소통하기가 힘들어요[email protected]으로 이메일을 보낼 수 있습니까?제발.

Please sign in to comment.