mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-13 14:05:35 +02:00
Update petBottle.ts
This commit is contained in:
@@ -33,11 +33,11 @@ export const petBottle = defineObject({
|
||||
const liquidMesh = model.findMesh('__X_LIQUID__');
|
||||
|
||||
const applyWithCap = () => {
|
||||
capMesh.setEnabled(options.withCap);
|
||||
capMesh.isVisible = options.withCap;
|
||||
};
|
||||
|
||||
const applyEmpty = () => {
|
||||
liquidMesh.setEnabled(!options.empty);
|
||||
liquidMesh.isVisible = !options.empty;
|
||||
};
|
||||
|
||||
applyWithCap();
|
||||
|
||||
Reference in New Issue
Block a user