Fix bug with samples not working properly

This commit is contained in:
oitsjustjose 2020-07-07 12:14:47 -05:00
commit 76a9b1005a

View file

@ -110,10 +110,10 @@ const makeForm = (usingNewConfig) => {
sampleWrapper.innerHTML = ''; sampleWrapper.innerHTML = '';
if (type == 'deposit' || type == 'depositBiome') { if (type == 'deposit' || type == 'depositBiome') {
const newInput = components.makePair('ore', true, sampleWrapper); const newInput = components.makePair('sample', true, sampleWrapper);
sampleWrapper.appendChild(newInput); sampleWrapper.appendChild(newInput);
} else if (type == 'depositMulti' || type == 'depositBiomeMulti') { } else if (type == 'depositMulti' || type == 'depositBiomeMulti') {
const newInput = components.makePair('ore', false, sampleWrapper); const newInput = components.makePair('sample', false, sampleWrapper);
sampleWrapper.appendChild(newInput); sampleWrapper.appendChild(newInput);
} else { } else {
alert(`Invalid type: ${type}`); alert(`Invalid type: ${type}`);