Skip to content

Commit

Permalink
修正部分问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Dec 19, 2023
1 parent bc4ce54 commit 922ccc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void addEffectButton(int start, int spacing, int y) {
public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {
this.renderBackground(matrixStack);
getMinecraft().textureManager.bind(BG);
blit(matrixStack, leftPos, topPos, 0, 0, 142, 111);

blit(matrixStack, leftPos, topPos + 2, 0, 0, 142, 111);
blit(matrixStack, leftPos + 118, topPos + 1, 44, 111, 154, 15);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ public void onAddedToWorld() {
@Override
public void onRemovedFromWorld() {
super.onRemovedFromWorld();
if (!this.level.isClientSide && this.getOwnerUUID() != null) {
if (!this.level.isClientSide && this.isAlive() && this.getOwnerUUID() != null) {
MaidWorldData data = MaidWorldData.get(this.level);
if (data != null) {
data.addInfo(this);
Expand Down

0 comments on commit 922ccc5

Please sign in to comment.